// source --> //netsu.com.br/wp-content/plugins/LayerSlider/static/layerslider/js/layerslider.kreaturamedia.jquery.js?ver=6.1.6 /* * LayerSlider * * (c) 2011-2017 George Krupa, John Gera & Kreatura Media * * Plugin web: https://layerslider.kreaturamedia.com/ * licenses: http://codecanyon.net/licenses/standard */ ;eval(function(p,a,c,k,e,r){e=function(c){return(c35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c);k=[function(e){return r[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('1i.2v={7t:{aw:!1,ce:!1},dF:"28"!=1t fb&&fb,cd:[],ao:[],8L:[],3e:{},d6:{},aR:2w.aR,dG:5c(\'7O[22*="5e.dH.c7.js"]\')[0],cg:"",7v:!1,fg:S(a,b,c,d){18 f,g,e="55"==1t a?5c("#"+a).3n():a;2J(b){1g"c7":g="sf 5c iJ",f=\'iQ iW j4 rZ rY 5L or cN rW rV an rU rD of 7l 5c iN rj ri 2e 8q 2A 6h cN rh. aL rg on cN 9p rf rc 2A 7l rb gk of 8q gs 83 7l "ra r9 r8 2A 3z" r6 r5 7l qT & qS qR 6f.\';1A;1g"iO":g="qQ 5c iJ",f="iQ iW j4 iT eH qP an qO 6i ("+c+") of 7l 5c iN. 8q qN at qL 6i "+d+\' or qK. aL 7R 5c 2A 1.10.x or qJ. qI: aL do 52 fH 7l 5c qz 5L on 9p . qm ql qk qj qg qf 5c by qe qd.\'}5c(\'<1z 2m="ls-ir">!\'+g+"<7X>"+f+"").q6(e)},iF:S(a){R.d6[a]=2B,2l R.d6[a]},dt:S(a,b){2e(18 c=a.1F("."),d=b.1F("."),e=0;e1d(d[e]))}1J c.1n!=d.1n,!0}},q5.q2.1c=S(a){1J(""+R).1c(a)},S(a){"fH q1";1i.6z={},a.fn.4Q=S(c,d,e,f){c=c||{};18 g="1.8.0",h=a.fn.c7,i="pY"+1u.2C().d3(36).g0(2,9);1J 1i.2v.dt(g,h,g)?(1t c).4b("5H|28")?R.3b(S(d){1i.6z[i]=4h b(R,a(R),c,i)}):"T"===c?1i.6z[R.T("7x")]:"4G"===c?1i.6z[R.T("7x")].2t.4G():"pX"===c?1i.6z[R.T("7x")].1k.1h.4k||!1:"6J"===c?1i.6z[R.T("7x")].6J||!1:"pV"===c?1i.6z[R.T("7x")].o||!1:"eD"===c?1i.6z[R.T("7x")].eD||!1:R.3b(S(b){18 g=1i.6z[a(R).T("7x")];g&&g.2t.9d(c,d,e,f),g=2B}):5m 1i.2v.fg(a(R),"iO",h,g)};18 b=S(b,c,d,e){c.T("7x",e).1N("T-5e-f0",e);18 f=R,g=1i.2v.dF?1i.2v.dF:1i;f.1k={1h:{f1:"|",1Q:"pU",3M:["#3f","#1Y","#2I","#1P","#9c","#3l","#3l-9c"],4k:{1W:"1V",am:"4V",dB:!0,iY:!0,j3:!0,7y:-1,c1:-1,jj:-1,5F:-1,jm:"ak",dQ:2B,bY:!1,ai:"ah",fd:"50% 50%",97:!0,ad:!0,5D:!1,fw:1,5C:"eL",a6:!1,4o:1,bx:pP,5t:-1,cL:!0,9Z:!1,87:!1,7n:bc,43:"pM",8U:"/5e/dg/",8T:"5J",8Q:!1,gS:"no-61",h3:"2b",hg:"2D",hD:"50% 50%",dD:!0,9K:!0,b4:!0,i1:!0,i8:!0,i9:!0,aZ:!1,ic:!1,ih:!0,ii:!1,65:"1r",aY:"60%",dT:1j,9C:60,e5:35,ec:1j,iA:!0,9y:"2D",iD:"pC.pB",en:40,ez:10,eC:"81",iV:!1,2Y:!1,iX:"1I: -j2; 1Z: -j2;",eP:!1,j6:"pA",j9:!0,eQ:!1,ji:-1,eR:-1,eV:!0,eW:!1,eX:!0,py:""}},X:{9o:"8q (pw: "+e+") 6A:"},24:{8A:{pv:["T","1K"],1K:["T","1K"],ps:["T","aB"],7f:["T","7f"],7Y:["T","7Y"],fF:["T","fF"],7g:["T","7g"],7i:["T","7i"],pr:["T","aq"],pq:["T","bG"],pp:["T","bG"],pk:["T","bA"],pf:["T","bA"],pe:["T","2U"],pc:["T","2U"],2p:["T","2p"],dE:["T","dE"],4R:["T","4R"],go:["2o","gw"],gA:["2o","6k"],gF:["2o","29"],gI:["2o","29"],gK:["2o","2N"],pb:["1p","3w"],p9:["1p","2A"],h2:["1B","1W"],h4:["1B","6D"],h7:["1B","e7"],hn:["1B","2X"],hB:["1B","9P"],hE:["1B","b5"],hJ:["1B","29"],hP:["1B","29"],hT:["1B","7U"],hX:["1B","2q"]},4k:{T:{1K:-1,aB:0}}},2P:{8A:{i3:["is"],1V:["is"],66:["2R"],3A:["2R"],p7:["2R"],7T:["42"],7S:["42"],9j:["42"],5I:["2S"],3M:["2S"],5Z:["2S"],aT:["2S"],2p:["2S"],4U:["2S"],9D:["2S"],p5:["2V","4t"],p4:["2V","4t"],p3:["29","4t"],p2:["3x","4t"],p1:["3u","4t"],p0:["29","4t"],oZ:["3x","4t"],oY:["3u","4t"],oS:["2N","4t"],oQ:["4q","4t"],oP:["4E","4t"],oN:["5G","4t"],oM:["5v","4t"],oL:["2U","93"],oK:["4e","93"],oJ:["3N","5X"],oI:["1a","5X"],oG:["1b","5X"],oF:["1p","5X"],3O:["29","4M"],oE:["3x","4M"],oD:["3u","4M"],29:["29","4M"],oC:["3x","4M"],oB:["3u","4M"],2N:["2N","4M"],oz:["4q","4M"],oy:["4E","4M"],ox:["5G","4M"],ow:["5v","4M"],ov:["2X","ae"],ou:["x","ae"],ot:["y","ae"],os:["2a","a8"],oq:["2M","in"],op:["2M","in"],oo:["2M","in"],ol:["1K","in"],ej:["2r","in"],oi:["2r","in"],oh:["1L","in"],og:["2V","3D"],oe:["2V","3D"],od:["29","3D"],oc:["3x","3D"],ob:["3u","3D"],oa:["29","3D"],o9:["3x","3D"],o8:["3u","3D"],o7:["2N","3D"],o4:["4q","3D"],o2:["4E","3D"],o1:["5G","3D"],o0:["5v","3D"],jv:["2r","8H"],nY:["2r","8H"],nW:["2X","7M"],nT:["x","7M"],nS:["y","7M"],nR:["1W","21"],nQ:["7m","21"],nP:["2M","21"],nO:["2M","21"],nN:["2M","21"],nK:["1K","21"],nJ:["1L","21"],nI:["2V","4d"],nH:["2V","4d"],nG:["29","4d"],nF:["3x","4d"],nE:["3u","4d"],nD:["29","4d"],nC:["3x","4d"],nB:["3u","4d"],nA:["2N","4d"],nz:["4q","4d"],ny:["4E","4d"],nx:["5G","4d"],nu:["5v","4d"],nt:["2U","8R"],nr:["4e","8R"],nq:["3N","5U"],nn:["1a","5U"],nm:["1b","5U"],nl:["1p","5U"],nj:["2X","9J"],ni:["x","9J"],nh:["y","9J"],ng:["2a","7s"],nf:["c3","1E"],ne:["2M","1E"],nd:["2M","1E"],nc:["1K","1E"],dq:["2r","1E"],nb:["2r","1E"],n9:["1L","1E"],n8:["2V","3q"],n7:["2V","3q"],n6:["29","3q"],n5:["3x","3q"],n4:["3u","3q"],n3:["29","3q"],n2:["3x","3q"],n1:["3u","3q"],n0:["2N","3q"],mZ:["4q","3q"],mY:["4E","3q"],mW:["5G","3q"],mV:["5v","3q"],mU:["2r","3q"],mT:["2r","3q"],mS:["2X","7F"],mR:["x","7F"],mQ:["y","7F"],mP:["1W","2s"],mO:["7m","2s"],mN:["2M","2s"],mM:["2M","2s"],mL:["2M","2s"],mK:["1K","2s"],mJ:["1L","2s"],mH:["2V","4a"],mF:["29","4a"],mC:["3x","4a"],mB:["3u","4a"],mA:["29","4a"],mz:["3x","4a"],my:["3u","4a"],mx:["2N","4a"],mw:["4q","4a"],mv:["4E","4a"],mu:["5G","4a"],mt:["5v","4a"],mr:["2X","68"],mq:["x","68"],mp:["y","68"],mo:["1p","68"],mn:["2a","9N"],mm:["2M","1v"],mj:["2M","1v"],mi:["1K","1v"],mh:["3i","1v"],mg:["9k","1v"],mf:["8j","1v"],me:["2r","1v"],md:["2r","1v"],1v:["1L","1v"],mb:["2V","46"],m9:["29","46"],m8:["3x","46"],m6:["3u","46"],m5:["29","46"],m4:["3x","46"],m3:["3u","46"],m2:["2N","46"],m1:["4q","46"],m0:["4E","46"],lZ:["5G","46"],lX:["5v","46"],lW:["2U","46"],lV:["4e","46"],lU:["5M","1r"],lT:["5M","1r"],lS:["5M","1r"],lR:["5M","1r"],lQ:["6T","1r"],lO:["6T","1r"],lN:["7d","1r"],lM:["7d","1r"],lL:["aJ","1r"],lK:["cD","1r"],lJ:["x","5u"],lH:["y","5u"],lG:["1p","5u"],lF:["3N","5u"],lE:["3N","5u"],lD:["2X","5u"],1r:["1L","1r"],go:["gw","2o"],gA:["6k","2o"],gF:["29","2o"],gI:["29","2o"],gK:["2N","2o"],lC:["6l","1B"],h2:["1W","1B"],h4:["6D","1B"],h7:["e7","1B"],hn:["2X","1B"],hB:["9P","1B"],hE:["b5","1B"],hJ:["29","1B"],hP:["29","1B"],hT:["7U","1B"],1B:["1L","1B"],lA:["2P","2q"],lz:["2P","2q"],ly:["2P","2q"],lx:["4T","2q"],lv:["4T","2q"],lu:["4T","2q"],lt:["1v","2q"],lr:["1r","2q"],hX:["1B","2q"]},cW:["lq","lp","lo","lm","ll","lk","li","lg","lf","ld","lc","lb","l9","l8","l7"],gU:{7b:[1],6y:[2],77:[3,[1,2,6,7,8]],8V:[4],7k:[5],6e:[6,[1,2,3,4,5]],6t:[7],hd:[8],he:[9],a5:[10],8d:[11,[2,3,4,5,6,7,8,9,10]],96:[12],f4:[13],5a:[14,[2,3,4,5,6,7,8,9,10,11,12,13]],9l:[15],hC:[16],dL:[17]},5j:{1p:S(){1J{co:0,hL:1j,hM:1j,hN:0,"cm-3O":0,hQ:0,hR:1j,hS:0}}},4k:S(a,b){18 c={is:{5w:!!a.is("3I.ls-bg"),2n:!!a.is(".ls-bg-4l"),hY:!!a.is("3I.ls-2P"),b3:!1,bj:!1,1V:!0,bI:b},4S:{},26:{},2R:{66:"e6",l6:b,9b:b},42:{7T:0,7S:0},2S:{3M:2B,5I:2B,5Z:2B,aT:"ah",2p:2B,4U:2B,2n:!1},1l:{7b:0,6y:0,77:0,8V:0,7k:S(a){1J 1u.3Y(R.6y,R.8V)},6e:0,6t:0,hd:S(a){1J 0===R.6t&&a.1v.1L&&("4L"==1t a.1v.2M||a.1v.2M.1c("77")!==-1&&a.1v.2M.1c("8V")!==-1&&a.1v.2M.1c("7k")!==-1)?(R.6e=f.W.1e.1l.89(a,a.1v.2M,"6e"),R.6t=a.1v.3i!==-1&&a.1l.6e+(a.1v.61+1)*a.1v.1K+a.1v.61*a.1v.9k):f.23&&f.1C.1s("2z","8P.l5",a.4X[0].eu+"."+a.4X.1N("2m")+" [ "+a.4X.4Z().g0(0,30)+"... ]"),1u.3Y(R.6y,R.6t)},he:S(a){1J 1u.3Y(R.8V,R.6t)},a5:S(a){1J 1u.3Y(R.7k(),R.6t)},8d:0,96:0,f4:S(a){1J 1u.3Y(R.96,R.6t)},5a:S(a){1J 1u.3Y(R.a5(),R.96)},9l:0,hC:S(a){1J 1u.3Y(R.9l,R.96,R.7k())},dL:S(a){1J 1u.3Y(R.9l,R.f4(),R.7k())},cc:!1,cj:!1},1U:{in:{1L:!0,8F:{2h:!1,4C:!1,19:{2V:0}},8C:{2h:!1,80:S(){f.W.1e.in.80(a)},4n:S(){f.W.1e.in.4n(a)},19:{3k:"5p",2V:1,29:0,3x:0,3u:0,4q:1,4E:1,5G:0,5v:0,x:0,y:0}},8w:{2h:!1,4C:!1,19:{}},8v:{2h:!1,19:{}},aP:{2h:!1,4C:!1,19:{}},6B:{2h:!1,19:{}},8t:{2X:"50% 50% 0",x:0,y:0},b6:{},bh:{},5K:{},2M:0,1K:1,2r:"a4"},21:{1L:2B,bm:{6o:{},2C:{},2V:0},9U:{2r:"a4",19:{2V:1,29:0,3x:0,3u:0,4q:1,4E:1,5G:0,5v:0,x:0,y:0}},8l:{6o:{},2C:{},2X:"50% 50% 0",x:0,y:0},1F:"",7m:.je,2M:"6y",1K:1},1E:{1L:!0,8F:{2h:!1,4C:!1,19:{}},8C:{2h:!1,80:S(){f.W.1e.1E.80(a)},4n:S(){f.W.1e.1E.4n(a)},19:{2V:0,29:0,3x:0,3u:0,4q:1,4E:1,5G:0,5v:0}},8w:{2h:!1,4C:!1,19:{}},8v:{2h:!1,19:{}},aP:{2h:!1,4C:!1,19:{}},6B:{2h:!1,19:{}},8t:{x:0,y:0},b6:{},bh:{},5K:{},2M:"9O",1K:1,2r:"a4"},2s:{1L:2B,bm:{4C:!1,6o:{},2V:1},9U:{2r:"a4",4C:!1,6o:{},2C:{},2V:0},8l:{6o:{},2C:{},x:0,y:0},1F:"",2M:"a5",7m:.je,1K:1},1v:{1L:2B,3w:{2h:!1,4C:!1,19:{}},2A:{2h:!1,19:{}},6B:{2h:!1,4C:!1,19:{}},8t:{2X:"50% 50% 0",x:0,y:0},5K:{},2r:"jh",2M:"7k",9k:0,1K:1,3i:0,8j:!1},1r:{1L:2B,3w:{2h:!1,4C:!1,19:{}},2A:{2h:!1,19:{}},8l:{2X:"50% 50% 0"},cD:!0,5M:"a4",7d:.5},1B:{1L:2B},2o:{2N:1.2},2a:{1L:!1,9H:"0 0 0 0",3Y:"-9A 9A 9A -9A"},1p:{3a:{1R:{},in:{},1E:{},1v:{},1r:{},8Z:{},cz:{},aS:{},aW:{}},W:{bg:2B,in:2B,1E:2B,1v:2B,1r:2B}},1h:{1M:{2h:!1,4C:!1,19:{3k:"5p"}}},2q:{2P:6d,4T:6d,1v:6d,1r:6d},3v:{f9:{2h:!1,19:{2V:1,3k:"3h"}},cY:{2h:!1,19:{x:0,y:0,29:0,3x:0,3u:0,4q:1,4E:1,5G:0,5v:0,2V:1,3k:"3h"}},cZ:{2h:!1,19:{x:0,y:0,29:0,3x:0,3u:0,4q:1,4E:1,5G:0,5v:0,2V:1}}}}};1J{is:c.is,4S:c.4S,26:c.26,2R:c.2R,42:c.42,2S:c.2S,2H:c.2H,1l:c.1l,in:c.1U.in,fi:c.1U.in.8F,4t:c.1U.in.8F.19,fj:c.1U.in.8w,93:c.1U.in.8w.19,fk:c.1U.in.aP,fl:c.1U.in.aP.19,aH:c.1U.in.8C,4M:c.1U.in.8C.19,d2:c.1U.in.8v,bB:c.1U.in.8v.19,d4:c.1U.in.6B,fu:c.1U.in.6B.19,a8:c.1U.in.5K,ae:c.1U.in.8t,5X:c.1U.in.b6,az:c.1U.in.bh,21:c.1U.21,3D:c.1U.21.bm,8H:c.1U.21.9U,l4:c.1U.21.9U.19,7M:c.1U.21.8l,1E:c.1U.1E,d8:c.1U.1E.8F,d9:c.1U.1E.8F.19,db:c.1U.1E.8w,bR:c.1U.1E.8w.19,ay:c.1U.1E.8C,4d:c.1U.1E.8C.19,bW:c.1U.1E.8v,8R:c.1U.1E.8v.19,bZ:c.1U.1E.6B,di:c.1U.1E.6B.19,7s:c.1U.1E.5K,9J:c.1U.1E.8t,ax:c.1U.1E.b6,5U:c.1U.1E.bh,2s:c.1U.2s,c9:c.1U.2s.bm,3q:c.1U.2s.9U,7F:c.1U.2s.8l,1v:c.1U.1v,fK:c.1U.1v.3w,dl:c.1U.1v.3w.19,cb:c.1U.1v.2A,4a:c.1U.1v.2A.19,dn:c.1U.1v.6B,fQ:c.1U.1v.6B.19,9N:c.1U.1v.5K,68:c.1U.1v.8t,1r:c.1U.1r,fR:c.1U.1r.3w,dp:c.1U.1r.3w.19,fT:c.1U.1r.2A,46:c.1U.1r.2A.19,5u:c.1U.1r.8l,1B:c.1U.1B,2o:c.1U.2o,2a:c.1U.2a,1p:c.1U.1p,2q:c.1U.2q,1h:c.1U.1h,3v:c.1U.3v}}}},f.1f={3i:0,2I:{},2x:{},1P:{},1h:S(){if(!2w.3z.7K(b))1J!1;2e(18 d=c.1y("> .ls-2P, > .ls-24"),e=0,g=f.1k.24.8A,h=0,i=d.1n;h\'))):l.T.$2n=!1),j.1y("> .ls-bg").1n&&(l.T.$2i=j.1y("> .ls-bg").3n()),l.T.2p||(j.1y("> .ls-gB").1n?l.T.2p=f.1H.ac(j.1y("> .ls-gB").3n()):j.1y("> .ls-bg").1n?l.T.2p=f.1H.ac(j.1y("> .ls-bg").3n()):l.T.2p=f.o.8U+f.o.43+"/l3.ei"),(l.T.7g||l.T.7i)&&"28"==1t aX&&(2l l.T.7g,2l l.T.7i,f.23&&f.1C.1s("2z","3o.gJ",e+1)),"4J"===k.4R&&(l.T.4R="4J"),l.T.2U||(l.T.2U=""===j[0].1R.2U?"5J":j[0].1R.2U),f.1f[++e]={},f.1f[e].T=a.5y(!0,{},f.1k.24.4k.T,l.T),f.1f[e].1B=l.1B,f.1f[e].2o=l.2o,f.1f[e].1p=l.1p,f.1f[e].1O=e,f.1f[e].$1e=a(),f.X.4K.4W(l.T.2p),f.1e.1h(j,e)}f.23&&f.1C.8s("3o.1R")},20:{gP:S(){18 a=f.1f;a.2I.1O=a.2x.1O,a.2x.1O=a.1P.1O,a.1P.1O=f.1w.3c.9L(f.1w.2G),a.20.ev()},gV:S(a){18 b=f.1f;b.1P.1O=a,b.20.ev()},ev:S(){18 b=f.1f;b.2I=b.2I.1O!==-1?a.5y(!0,{},b[b.2I.1O]):{},b.2x=b.2x.1O!==-1?a.5y(!0,{},b[b.2x.1O]):{},b.1P=b.1P.1O!==-1?a.5y(!0,{},b[b.1P.1O]):{}},4o:S(){18 a=f.1f;if(a.3n={1O:f.1H.2L.5j(f.o.4o)},f.o.87&&f.1f.3i>2?f.o.9Z=!1:f.o.87=!1,a.3n.1O="2C"==a.3n.1O?1u.3C(1u.2C()*f.1f.3i+1):a.3n.1O,2w.7G.a0)2e(18 b=1;bf.1f.3i?1:a.3n.1O,f.o.87&&"2C"!=f.o.4o&&(a.3n.1O=f.o.4o),f.o.5D&&f.1w.20.gZ(),f.23&&f.1C.4k.4o&&(a.3n.1O=f.1C.4k.4o)}},24:[]},f.1e={$5l:a(),5S:S(a,b){1J a.1c("%")!=-1?3p(a)*b:3p(a)},1h:S(c,d){if(!2w.3z.7K(b))1J!1;2e(18 g,e=c.1y(\'.ls-bg, .ls-l, .ls-2P, *[2m^="ls-s"]\'),i=0,j=e.1n;i5?l:j,F=l>5?E:F,k=j/F):m!==k&&(k=m>5?m:k,F=m>5?m:F,j=k*F)),h=3p(a.19("2V")),p=y+r+j+t+A,q=z+s+k+u+B,i=""!==d.2a&&d.2a,d.2a="",x=d.kN||d.1p;18 N=S(a){18 b=a;1J a&&a.1c("px ")!==-1&&(a=a.2k("px","").1F(" "),b=1u.6j(1d(a[0])/j*1j)+"%"),b};c.2T={2a:i,5K:!1,1I:d.1I?d.1I:"0",1Z:d.1Z?d.1Z:"0",1a:1u.6G(j),1b:1u.6G(k),8h:n,8i:o,4H:p,4D:q,1D:F,6R:r,6P:s,6Q:t,6s:u,3J:v,58:w,6N:y,6I:z,6K:A,6H:B,3N:N(a.19("kM"))+" "+N(a.19("kL"))+" "+N(a.19("kK"))+" "+N(a.19("kJ")),6c:3p(a.19("kI-kH")),b9:a.19("fe-1b"),bb:a.19("kG-kF"),4e:a.19("4e"),72:1d(a.19("z-1O"))||"2D",1p:x,2U:a.19("2i-4e"),kE:a.1N("T-ls")||"",ef:a.1N("1R")||""},d.72="2D",c.1V={1I:d.1I?d.1I:"0",1Z:d.1Z?d.1Z:"0",1a:j,1b:k}},5j:S(b,c,d){18 e=b.T(f.1k.1h.1Q);b.T("ls");if(e.is.bj=!b.is("3I")&&!e.is.b3,e.4X=b,b.T("ls"))2e(18 i=f.1k.2P.8A,j=b.T("ls").1F(";"),k=b.T("ls").4x().1F(";"),l=0;l0||e.1v.3i===-1)&&e.1v.1L!==!1?(e.1v.1L=!0,e.cb.2r=e.dn.2r=f.1H.2L.4I(e.1v.2r),e.1v.3i!==-1?e.1v.8j?e.1v.61=2*e.1v.3i-1:e.1v.61=e.1v.3i-1:e.1v.61=-1):e.1v.1L=!1,a.4u(e.46)||e.1r.1L===!1?e.1r.1L=!1:(e.1r.1L=!0,e.1r.6T||(e.1r.6T=e.1r.5M),e.1r.5M=f.1H.2L.4I(e.1r.5M),e.1r.6T=f.1H.2L.4I(e.1r.6T,!0),e.1r.aJ||(e.1r.aJ=e.1r.7d),g.2Z.20(b[0],{2h:!1,19:{2q:e.5u.2q}})),e.1B.6l&&a.7r(e.1B.6l)&&0!==e.1B.6l&&e.1B.1L!==!1?e.1B.1L=!0:e.1B.1L=!1,e.is.5w){18 u={2N:1,29:0};if(f.1f[c].2o.6k&&(e.2o=f.1f[c].2o),e.2o.6k){2J(e.2o.3w={},e.2o.2A={},e.2o.6k){1g"1E":e.2o.3w.2N=e.2o.2N||1,e.2o.3w.29=e.2o.29||0,e.2o.2A=u;1A;1g"in":e.2o.3w=u,e.2o.2A.2N=e.2o.2N||1,e.2o.2A.29=e.2o.29||0}2l e.2o.2N,2l e.2o.29}2y e.2o.3w=u,e.2o.2A=u;a.4u(f.1f[c].1p)||(f.1f[c].1p.3w&&(e.1p.3a.aS=f.W.1e.4w.2L(f.1f[c].1p.3w)),f.1f[c].1p.2A&&(e.1p.3a.aW=f.W.1e.4w.2L(f.1f[c].1p.2A)))}if(e.21.1W&&f.1k.2P.cW.1c(e.21.1W)===-1&&(f.23&&f.1C.1s("2z","7V.kt",[b[0].eu,e.21.1W]),2l e.21.1W,2l e.21.ns,e.21.1L=!1),e.2s.1W&&f.1k.2P.cW.1c(e.2s.1W)===-1&&(f.23&&f.1C.1s("2z","7V.ks",[b[0].eu,e.2s.1W]),2l e.2s.1W,2l e.2s.ns,e.2s.1L=!1),e.21.1W||e.2s.1W){18 v=0;if(e.is.bj?(e.21.1W&&(e.21.1L=!0,e.8H.2r=f.1H.2L.4I(e.8H.2r),e.21.1F=e.21.1W.1F("3T")[0],b.3S().1n&&f.23&&(v=1)),e.2s.1W&&(e.2s.1L=!0,e.3q.2r=f.1H.2L.4I(e.3q.2r)),e.2s.1L&&e.2s.1W.1F("3T")[0]!==e.21.1F&&(e.21.1F+=", "+e.2s.1W.1F("3T")[0],b.3S().1n&&f.23&&(v=1)),e.21.1F.1c("kr")!==-1&&e.21.1F.1c("ew")===-1&&(e.21.1F+=", ew"),e.21.1F.1c("ew")!==-1&&e.21.1F.1c("fG")===-1&&(e.21.1F+=", fG")):(2l e.21.1W,2l e.2s.1W,2l e.21.ns,2l e.2s.ns,f.23&&(v=2)),f.23&&0!==v&&c&&!d)2J(v){1g 1:f.1C.1s("2z","7V.kq",[b.62("fJ"),c]);1A;1g 2:f.1C.1s("2z","7V.kp",[c,b.62("fJ")])}}if((e.2T.2a||e.a8.2a||e.7s.2a||e.9N.2a)&&(e.2a.1L=!0),e.in.1L&&e.4M.2N&&(2l e.4M.4q,2l e.4M.4E),e.1E.1L&&e.4d.2N&&(2l e.4d.4q,2l e.4d.4E),e.5X.1p&&(e.1p.3a.in=f.W.1e.4w.2L(e.5X.1p)),e.1p.3a.1R=f.W.1e.4w.2L(e.2T.1p),e.5U.1p&&(e.1p.3a.1E=f.W.1e.4w.2L(e.5U.1p)),e.68.1p&&(e.1p.3a.1v=f.W.1e.4w.2L(e.68.1p)),e.5u.1p&&(e.1p.3a.1r=f.W.1e.4w.2L(e.5u.1p)),e.in.1L||(e.in.1K=0),e.21.1L||(e.21.1K=0),e.1v.1L||(e.1v.1K=0),e.2s.1L||(e.2s.1K=0),e.1E.1L||(e.1E.1K=0),b.1N("T-ko",c),"28"!=1t e.2R.3A&&"3h"!==e.2R.3A){18 w=1d(e.2R.3A);0!==w&&"kn"!==e.2R.3A?(b.1N("T-fM",w),e.2R.9b=w):e.2R.9b=0,e.is.3A=!0,b.1N("T-3A","1")}2y b.1N("T-fM",c);e.2S.4U&&(e.2S.4U<0?e.2S.4U=0:e.2S.4U>1j&&(e.2S.4U=1j)),e.is.2n&&(f.1S.9s(e),e.42.9j&&b.1y(".ls-bg-4l-9j").19({fO:"6C("+e.42.9j+")"})),e.42.7T&&(e.42.7T=3p(e.42.7T)),e.42.7S&&(e.42.7S=3p(e.42.7S))}},3c:S(a){18 b=R.$5l;if(a){a=a.4x();18 c="in",d="",e="",g=\':52(".ls-bg")\',h=\':52(".ls-bg-4l")\';a.1c("bQ")==-1&&a.1c("9D")==-1||(h="",a=a.2k("bQ","").2k("9D","")),a.1c("4l")!=-1&&(e+=", > 4l",a=a.2k("4l","")),a.1c("8z")!=-1&&(e+=", > 8z",a=a.2k("8z","")),a.1c("5q")!=-1&&(e+=", > 4l, > 8z",a=a.2k("5q","")),a.1c("3B")!=-1&&(e+=\', > 41[22*="3B-bT.51"], > 41[22*="3B.51"], > 41[22*="bU.be"], > 41[T-22*="3B-bT.51"], > 41[T-22*="3B.51"], > 41[T-22*="bU.be"]\',a=a.2k("3B","")),a.1c("3R")!=-1&&(e+=\', > 41[22*="3E.3R"], > 41[T-22*="3E.3R"]\',a=a.2k("3R","")),","==e.fX(0)&&(e=e.8m(2,e.1n)),a.1c("1E")!=-1&&(c="1E"),a.1c("3I")==-1&&a.1c("5i")==-1||(d="3I"),a.1c("bg")==-1&&a.1c("2i")==-1&&a.1c("c0")==-1||(g=""),b=a.1c("2x")!=-1?b.1p(d+"[T-24"+c+\'="\'+f.1f.2x.1O+\'"]\'+g+h):a.1c("1P")!=-1?b.1p(d+"[T-24"+c+\'="\'+f.1f.1P.1O+\'"]\'+g+h):b.1p(d+g+h),a.1c("c2")!=-1&&(b=b.1p(".ls-bg, .ls-bg-4l, :4A"),a=a.2k("c2","")),a.1c("3g")!=-1&&(b=b.1p(":4J:52(.ls-bg, .ls-bg-4l)"),a=a.2k("3g","")),a.1c("c5")!=-1&&(b=b.1p(\':52([T-3A="1"])\'),a=a.2k("c5","")),a.1c("3A")!=-1&&(b=b.1p(\'[T-3A="1"]\'),a=a.2k("3A","")),a.1c("c0")!=-1&&(b=b.1p(".ls-bg"),a=a.2k("c0","")),""!==e&&(b=b.1y(e))}1J b},7R:{T:S(b,c,d){18 e,g,h;2J(b g3 5c||(b=a(b)),d&&b.1N("T-ls",d).T("ls",d),g=b.T(f.1k.1h.1Q),e=g.is.bI,h=g.2T,c){5b:1g"W":g.2R.7c=!1,f.1e.20.5j(b,e,!0);1A;1g"5l":b.T(f.1k.1h.1Q,4h f.1k.2P.4k(b,e)),g=b.T(f.1k.1h.1Q),g.2T=h,f.1e.20.5j(b,e,!0),f.1e.20.2W(b,g,e)}}},5B:S(b,d){if(!f.1f[b].8y&&"g6"!==f.1f[b].8y){f.1f[b].8y="g6";18 e=d?25:0,g=f.1f[b].$1e,h=g.1n;g.3b(S(d,g){f.2F["24-"+b+"-2P-"+d]=5z(S(){2l f.2F["24-"+b+"-2P-"+d];18 k,e=a(g),i=e,j="",l=!1,m="";e.6Z("ls-4P-f3")&&(m+=" ls-4P-on-f3"),e.6Z("ls-4P-cA")&&(m+=" ls-4P-on-cA"),e.6Z("ls-4P-cB")&&(m+=" ls-4P-on-cB"),e.4g("ls-4P-f3 ls-4P-cA ls-4P-cB"),i.is("a")&&1===i.3S().1n&&(l=!0,e=i.1y(".ls-2P"));18 n=e.T(f.1k.1h.1Q);if(!n)1J!0;if(k=f.X.$7B,n.is.2n?k=f.X.$gf:n.is.5w&&(k=f.X.$cf),f.1e.20.1R(e),f.1e.20.5j(e,b),n.21.1F){18 o=4h km(e[0],{1F:n.21.1F});n.21.1W&&(n.21.ns=o[n.21.1W.1F("3T")[0]]),n.2s.1W&&(n.2s.ns=o[n.2s.1W.1F("3T")[0]])}n.is.5w||n.is.2n?j=\'<1z 2m="ls-1M ls-bg-cS"><1z 2m="ls-1M ls-bg-5B">\':(n.2a.1L&&(j=\'<1z 2m="ls-1M ls-2a">\'),n.1v.1L&&(j=\'<1z 2m="ls-1M ls-1v">\'+j+""),j=\'<1z 2m="ls-1M ls-in-1E">\'+j+""),n.1B.1L&&(j=\'<1z 2m="ls-1M ls-1B">\'+j+""),f.6S.9F&&(j=\'<1z 2m="ls-1M ls-z">\'+j+""),""!==j?e.2c(k).5B(j):e.2c(k),l===!0&&i.2j("ls-2P-4Y").2c(e.4p());18 p={},q=e.19("cE-cF-cG");if(q&&"4V"!==q&&(p["cE-cF-cG"]=q,e.19("cE-cF-cG","4V")),n.2T.ch=1,n.is.2n)p={72:n.2T.ch};2y if(n.is.5w)p={72:n.2T.ch};2y{18 r=1d(n.2T.72);r||(r=d+kl),p.72=r,n.2T.ch=r}f.6S.9F&&(p.3r="gp("+kk*r+"px )"),f.1e.20.2W(e,n,b),n.26.$9G.19(p).2j(m),n.is.5w&&n.26.$8n.19({2U:f.1f[b].T.2U}),f.1e.$5l=f.1e.$5l.1s(e),f.1f[b].$1e=f.1f[b].$1e.52(i),d===h-1&&(c.3S(".ls-24").eq(b-1).kj(),f.1f[b].8y=!0)},e*(d+1))})}}},f.1w={2G:"1P",ki:0,8E:!0,3H:{4V:[],cq:[]},2u:{6x:!0,4c:!1,8G:!1,9u:!1,9v:!1},4S:{69:!1,3f:!1,1Y:!1},53:S(){1J R.2u.4c||R.2u.8G||R.2u.9u},1h:S(){1==f.1f.3i&&(f.o.97=!1,f.o.dD=!1,f.o.9K=!1,f.o.b4=!1,f.o.5t=-1,f.o.gE=!1,f.o.9y=!0,f.o.4o=1,f.o.65="aO"),f.o.97&&1!=f.1f.3i||f.1H.2O(R,{6x:!1,4c:!0}),R.20.5C(),R.20.gH()},20:{5C:S(){f.o.5C=f.o.5C===!0?f.1k.1h.4k.5C:f.o.5C,f.o.5C!==!1&&c.on("6w."+e,S(){f.X.2u.6v||(f.1H.2O(f.1w,{9u:!0}),"eL"!==f.o.5C&&f.W.1e.1l.5g())}).on("6m."+e,S(){18 b=1;f.W.1G&&f.W.1G.1K()>f.W.1e.1l.4i&&(b=f.W.1e.1l.4i/f.W.1G.1K()),f.1H.2O(f.1w,{9u:!1}),a("3z").6Z("ls-9E")||"eL"===f.o.5C||f.o.a6&&f.1w.53()||f.W.1e.1l.84(),f.W.1G&&f.W.1e.1l.2u.7w&&f.W.1G.3t()0&&(f.1w.b2=1,f.1w.de=f.1w.3c.dc(f.1f.3n.1O))},6u:S(a){if(f.1w.3c.dc(a)===f.1w.de)1J++f.1w.b2===f.o.5t+1}},3f:S(a){!R.53()&&f.W.1G&&f.W.1e.1l.2u.7w&&R.6V(f.1f.1P.1O)},1Y:S(){f.1H.2O(R,{6x:!1,4c:!0})},6V:S(d,e,g){if(!2w.3z.7K(b))1J!1;if(!R.8E&&f.2t.3W("h1")){18 h=c.4f("h1",f.2t.4G());if(h===!1)1J;a.7r(h)&&(d=1d(h))}1J d>f.1f.3i||d<1?5m(f.23&&(f.1C.1s("7P","1w"),f.1C.1s("2z","1w.kg",[d,f.1f.3i]),f.1C.8s())):5m(f.X.85()||f.1w.2u.8G&&!e?!f.X.2u.9M&&f.X.2u.86&&f.W.3s&&(f.1w.4S.69=!0,f.W.3s.3t(1),f.W.57&&f.W.57.3t(1)):(f.1H.2O(f.W.1e.1l,{7w:!1}),f.1w.4S.69=!1,f.23&&f.1C.1s("7P","1w"),e?("2I"===f.2g.2G&&f.o.9Z&&(f.1w.2G="2I"),f.23&&(f.1C.1s("59","1w.kf",!1),f.o.9Z&&f.1C.1s("59","1w.ke",f.1w.2G))):f.2g.2G=f.1w.2G,f.W.2f.3l(),f.1S.1Y(),f.1f.20.gV(d),f.23&&(f.1C.1s("59","1w.69",[f.1f.2x.1O,f.1f.1P.1O,f.1w.2G,f.2g.2G]),f.1C.8s()),f.1H.2O(R,{8G:!1}),f.1H.2O(f.X,{8k:!0}),f.5P.ds(f.1f.1P.1O,S(){f.W.3f()})))},kd:S(){f.2g.1Y(),a.3b(f.2F,S(a,b){88(f.2F[a])}),f.W.2f.1Y(),f.W.1G.1Y(),f.1H.2O(f.W.1e.1l,{9T:!0,6x:!1}),c.1y("*").1Y(!0,!1).k8()},hi:S(){c.1y("*").1Y(),f.2g.69(f.1f.2x.1O,f.1w.2G)}},f.1S={k7:{},$73:a(),79:"9V:",9W:0,bl:0,1h:S(){2w.7G.4y.1c("7L:")!=-1&&(R.79="7L:"),f.1H.2O(f.X,{dz:!1,dA:!1}),f.1S.3B.1h(),f.1S.3R.1h(),f.1S.5q.1h()},3B:{1h:S(){18 b=0;R.$8a=f.X.$7q.1y(\'41[22*="3B-bT.51"], 41[22*="3B.51"], 41[22*="bU.be"], 41[T-22*="3B-bT.51"], 41[T-22*="3B.51"], 41[T-22*="bU.be"]\').3b(S(){18 c=a(R),d=c.4p(),e=d.T(f.1k.1h.1Q),g=(c.1N("22")||c.1N("T-22")).2k("5I=1","5I=0").2k("?","?hp=9z&"),h=g.1c("9V")===-1?f.1S.79:"",i=g.1c("?")===-1?"?":"&",j="hq=hr&5q=1&k4=1&6i=3",k={$9X:c,9Y:h+g+i+j,hv:f.1S.79+"//3I.3B.51/k3/"+g.1F("k2/")[1].1F("?")[0]+"/"+f.o.iD};c.1N("id","ls-3B-"+ ++b),e.2H={1W:"3B",8b:k},f.1S.bq(e),e.is.2n&&f.1S.9s(e),e.is.2n||f.1S.br(d,c,k.9Y,k.hv,e)}),f.1S.$73=f.1S.$73.1s(R.$8a.4p()),R.$8a.1n&&(f.2F.dI=1u.3C(bs.bt()/3y),1i.bu||a("<7O>").1N({22:"7L://k0.3B.51/jY",1W:"4T/hI"}).2c("a2"),1i.jW=S(){1i.2v.7t.aw=!0},f.4B.dP=bz(S(){1i.bu&&1===1i.bu.dR||1i.2v.7t.aw||1u.3C(bs.bt()/3y)-f.2F.dI>3?(a3(f.4B.dP),2l f.4B.dP,2l f.2F.dI,f.1S.3B.$8a.4p().3b(S(){18 b=a(R),c=b.T(f.1k.1h.1Q),d=c.2H.8b;b.on("8c."+e+" 54."+e,".ls-78",S(){f.1S.bD(a(R)),f.1S.bE(b,c),f.1S.bF(b),f.1S.3B.2K(b,d.$9X,d.9Y,c)}).on("bH."+e,S(){f.1S.3B.2K(b,d.$9X,d.9Y,c)}).on("a7."+e,S(){f.1S.3B.1Y(b,d.$9X,c)}).on("dZ."+e,S(){f.1S.3B.94(b,d.$9X,d.9Y,c,!0)})}),f.1H.2O(f.X,{dz:!1})):f.1H.2O(f.X,{dz:!0})},25))},94:S(a,b,c,d,e){18 g=S(){2B!==d.2S.4U&&d.2H.3E.i0(d.2S.4U),e&&!d.2H.e1||(d.2H.3E.8c(),d.2H.e1=!1)},h=S(b){0===b.T&&(d.is.2n?d.2H.3E.bK(0):f.1S.bL(a,d))};if(2B!==d.2S.5Z)2J(d.2S.5Z){5b:c.2k("&5Z=0","").2k("&5Z=1","");1g!0:c+="&5Z=1";1A;1g!1:c+="&5Z=0"}if(2B!==d.2S.3M)2J(d.2S.3M){5b:c.2k("&3M=0","").2k("&3M=1","");1g!0:c+="&3M=1";1A;1g!1:c+="&3M=0"}b.1N("22",c),d.2H.3E=4h bu.jV(b[0],{i5:{jU:g,jT:h}})},2K:S(a,b,c,d){d.2H.3E?d.2H.3E.8c?d.2H.3E.8c():d.2H.e1=!0:R.94(a,b,c,d)},1Y:S(a,b,c){c.2H.3E&&(c.2H.3E.jS().bK(0),c.is.2n||f.1S.bO(a.1y(".ls-78")))}},3R:{1h:S(){18 b=R.$8a=f.X.$7q.1y(\'41[22*="3E.3R"], 41[T-22*="3E.3R"]\');if(b.1n){f.2F.e8=1u.3C(bs.bt()/3y),f.1S.$73=f.1S.$73.1s(b.4p());18 c=0;a("<7O>").1N({22:f.1S.79+"//f.jR.51/js/jQ.9H.js",1W:"4T/hI"}).2c("a2"),f.4B.eb=bz(S(){f.1H.2O(f.X,{dA:!0}),(1i.jP||1u.3C(bs.bt()/3y)-f.2F.e8>3)&&(a3(f.4B.eb),2l f.4B.eb,2l f.2F.e8,1i.2v.7t.ce=!0,d())},25);18 d=S(){f.1S.3R.$8a.3b(S(){18 b=a(R).1N("id","ls-3R-"+ ++c),d=b.4p(),g=d.T(f.1k.1h.1Q),h=(b.1N("22")||b.1N("T-22")).2k("5I=1","5I=0").2k("?","?hp=9z&"),i=h.1c("?")===-1?"?":"&",j=h.1c("9V")===-1?f.1S.79:"",k="hq=hr&2t=1&jO=ls-3R-"+c,l=f.1S.79+"//3R.51/2t/jN/4l/"+h.1F("4l/")[1].1F("?")[0]+".jM?jL=?",m=j+h+i+k;g.2H={1W:"3R",8b:{}},f.1S.bq(g),g.is.2n&&f.1S.9s(g),a.jK(l,S(a){g.is.2n||f.1S.br(d,b,m,a[0].jJ,g)}),d.on("8c."+e+" 54."+e,".ls-78",S(){f.1S.bD(a(R)),f.1S.bE(d,g),f.1S.bF(d),f.1S.3R.2K(d,b,m,g)}).on("bH."+e,S(){f.1S.3R.2K(d,b,m,g)}).on("a7."+e,S(){f.1S.3R.1Y(d,b,g)}).on("dZ."+e,S(){f.1S.3R.94(d,b,m,g,!0)})}),f.1H.2O(f.X,{dA:!1})}}},94:S(a,b,c,d,e){if(2B!==d.2S.5Z)2J(d.2S.5Z){5b:c.2k("&98=0","").2k("&98=1","").2k("&99=0","").2k("&99=1","").2k("&9a=0","").2k("&9a=1","");1g!0:c.2k("98=0","98=1","").2k("99=0","99=1","").2k("9a=0","9a=1","");1A;1g!1:c.2k("98=1","98=0","").2k("99=1","99=0","").2k("9a=1","9a=0","")}b.1N("22",c);18 g=S(){d.is.2n?d.2H.3E.2t("bK",0).2t("2K"):f.1S.bL(a,d)};d.2H.3E=$f(b[0]),d.2H.3E.it("bV",S(){d.2H.3E.it("jI",g),2B!==d.2S.4U&&d.2H.3E.2t("i0",d.2S.4U/1j),e||d.2H.3E.2t("2K")})},2K:S(a,b,c,d){d.2H.3E?d.2H.3E.2t("2K"):R.94(a,b,c,d)},1Y:S(a,b,c){c.2H.3E&&(c.2H.3E.2t("5g").2t("bK",0),c.is.2n||f.1S.bO(a.1y(".ls-78")))}},5q:{1h:S(){if(R.$26=f.X.$7q.1y("4l, 8z"),f.1S.$73=f.1S.$73.1s(R.$26.4p()),R.$26.1n){18 b=0;f.1S.5q.$26.3b(S(){18 c=a(R).1N("id","ls-5q-"+ ++b),d=a(R).4p(),g=d.T(f.1k.1h.1Q);if(g.2H={1W:"5q",8b:{}},f.1S.bq(g),g.is.2n&&f.1S.9s(g),c.1N("5I")){18 h=c.7C("5I").bX(!0,!0);c.5T(),c=h.2c(d),d.T("ls",d.T("ls")+" 5I: 9z;")}g.is.2n||f.1S.br(d,c,!1,!1,g),c.on("jG."+e,S(){g.is.2n?(c[0].iy=0,c[0].2K()):f.1S.bL(d,g)}),d.on("8c."+e+" 54."+e,".ls-78",S(b){f.1S.bD(a(R)),f.1S.bE(d,g),f.1S.bF(d),f.1S.5q.2K(d,c,g)}).on("bH."+e,S(){f.1S.5q.2K(d,c,g)}).on("a7."+e,S(){f.1S.5q.1Y(d,c,g)})})}},2K:S(a,b,c){if(c.2H.8b.3M)2J(c.2H.8b.3M){1g!0:b.62("3M",!0);1A;1g!1:b.62("3M",!1)}2y b.62("3M",c.2S.3M);2B===c.2S.4U||c.2H.iz||(b[0].4U=c.2S.4U/1j,c.2H.iz=!0),b[0].2K()},1Y:S(a,b,c){b[0].5g(),b[0].iy=0,b.62("3M",!1),c.is.2n||f.1S.bO(a.1y(".ls-78"))}},9s:S(a){a.2S={3M:!1,5I:!1,5Z:!1,aT:"ah",2p:!1,4U:0}},bq:S(a){a.is.b3=!0},br:S(b,c,d,e,f){18 g=a("<1z>").2j("ls-78").2c(b);a("<1z>").2c(g).2j("ls-jF"),b.T("ls")&&b.T("ls").1c("aj:")!==-1&&(e=b.T("ls").1F("aj:")[1].1F(";")[0].3V()),c.is("41")?a("<1z>").2c(g).2j("ls-iC").1N({1R:"2i-5i: 6C("+e+")"}):(c.is("4l")&&(f.2H.8b.3M=c.62("3M"),c.62("3M",!1)),e||"28"==1t c.1N("aj")||(e=c.1N("aj"),c.7C("aj")),e&&a("<1z>").2c(g).2j("ls-iC").1N({1R:"2i-5i: 6C("+e+")"}))},bE:S(a,b){!b.is.3A&&f.o.9y&&(f.1H.2O(f.1w,{8G:!0}),"2D"==f.o.9y&&R.9W++)},bD:S(a){a.3U(f.W.1S.1k.3U).5E(f.W.1S.1k.5E)},bO:S(a){a.5d(f.W.1S.1k.5d)},bL:S(a,b){"2D"!=f.o.9y||b.is.2n||(b.is.3A||R.bl++,R.bl==R.9W&&0!==R.9W&&(f.1H.2O(f.1w,{8G:!1}),f.1w.jE=1,f.1w.3f()))},1Y:S(){18 b=R;f.1e.3c("2x,1E,3B").3b(S(){18 c=a(R),d=c.3K(".ls-2P"),e=d.T(f.1k.1h.1Q);b.3B.1Y(d,c,e)}),f.1e.3c("2x,1E,3R").3b(S(){18 c=a(R),d=c.3K(".ls-2P"),e=d.T(f.1k.1h.1Q);b.3R.1Y(d,c,e)}),f.1e.3c("2x,1E,5q").3b(S(){18 c=a(R),d=c.3K(".ls-2P"),e=d.T(f.1k.1h.1Q);b.5q.1Y(d,c,e)}),R.9W=0,R.bl=0},bF:S(a){f.W.1G.5R(2B,[a[0],a.3K(".ls-in-1E")[0]])}},f.2Y={1h:S(){f.o.2Y&&(R.$1o=a("<3I>").2j("ls-jD").2c(c).1N("1R",f.o.iX).19({6b:"4A",3k:"jC"}).on("48."+e,S(){18 b=f.2Y.$1o?6d:0;f.2F.2Y=5z(S(){2l f.2F.2Y,f.2Y.$1o.T("al",f.2Y.$1o.1a()),f.2Y.$1o.T("b7",f.2Y.$1o.1b()),"2D"!=f.2Y.$1o.19("1I")&&f.2Y.$1o.T("ar",f.2Y.$1o[0].1R.1I),"2D"!=f.2Y.$1o.19("3L")&&f.2Y.$1o.T("as",f.2Y.$1o[0].1R.3L),"2D"!=f.2Y.$1o.19("1Z")&&f.2Y.$1o.T("au",f.2Y.$1o[0].1R.1Z),"2D"!=f.2Y.$1o.19("1T")&&f.2Y.$1o.T("av",f.2Y.$1o[0].1R.1T),f.o.eP!==!1&&a("").2c(c).1N("4y",f.o.eP).1N("5f",f.o.j6).19({jB:"3h",jA:"3h"}).8u(f.2Y.$1o),f.2Y.$1o.19({3k:"3h",6b:"4J"}),f.2Y.1x()},b)}).1N("22",f.o.2Y))},1x:S(){R.$1o.19({1a:R.$1o.T("al")*f.1x.1D,1b:R.$1o.T("b7")*f.1x.1D}),R.$1o.5d(56);18 a="2D",b="2D",d="2D",e="2D";a=R.$1o.T("ar")&&R.$1o.T("ar").1c("%")!=-1?c.1a()/1j*1d(R.$1o.T("ar"))-R.$1o.1a()/2+1d(c.19("4s-1I")):1d(R.$1o.T("ar"))*f.1x.1D,b=R.$1o.T("as")&&R.$1o.T("as").1c("%")!=-1?c.1a()/1j*1d(R.$1o.T("as"))-R.$1o.1a()/2+1d(c.19("4s-3L")):1d(R.$1o.T("as"))*f.1x.1D,d=R.$1o.T("au")&&R.$1o.T("au").1c("%")!=-1?c.1b()/1j*1d(R.$1o.T("au"))-R.$1o.1b()/2+1d(c.19("4s-1Z")):1d(R.$1o.T("au"))*f.1x.1D,e=R.$1o.T("av")&&R.$1o.T("av").1c("%")!=-1?c.1b()/1j*1d(R.$1o.T("av"))-R.$1o.1b()/2+1d(c.19("4s-1T")):1d(R.$1o.T("av"))*f.1x.1D,R.$1o.19({1I:a,3L:b,1Z:d,1T:e})}},f.1q={2g:{1h:S(){f.o.dD&&R.9I.1h(),(f.o.9K||f.o.b4)&&R.1T.1h()},9I:{1h:S(){a(\'\').on("54."+e,S(a){a.3P(),c.4Q("2I")}).2c(c),a(\'\').on("54."+e,S(a){a.3P(),c.4Q("1P")}).2c(c),f.o.i9&&R.9e()},9e:S(){c.1y(".ls-31-2I, .ls-31-1P").19({3k:"3h"}),c.on("6w."+e,S(){f.1q.2g.eG||c.1y(".ls-31-2I, .ls-31-1P").1Y(!0,!0).5d(56)}).on("6m."+e,S(){c.1y(".ls-31-2I, .ls-31-1P").1Y(!0,!0).5E(56)})}},1T:{1h:S(){R.1M=a(\'<1z 2m="ls-1q-1o ls-1T-31-1M" />\').2c(c),f.o.b4&&"9f"!=f.o.65&&R.ci.1h(),f.o.9K?R.iZ():"9f"!=f.o.65&&R.j0(),f.o.aZ&&"9f"!=f.o.65&&R.9e(),"9f"==f.o.65&&(R.1M.2j("ls-j1-4K"),R.4K.1h())},ci:{1h:S(){18 b=R;a(\'<7X 2m="ls-1T-9g" />\').2c(c.1y(".ls-1T-31-1M"));2e(18 d=0;d\').2c(c.1y(".ls-1T-9g")).T("1O",d+1).on("54."+e,S(b){b.3P(),c.4Q(a(R).T("1O"))});"1r"==f.o.65&&g.on("6w."+e,S(){18 d=a(R);c.1y(".ls-2p-1r-3I").19({1I:1d(b.8e.19("4s-1I")),1Z:1d(b.8e.19("4s-1Z"))}),b.aC.on("48."+e,S(){0===a(R).1a()?b.aC.19({66:"e6",6O:"0 2D",1I:"2D"}):b.aC.19({66:"j5",3J:-a(R).1a()/2,1I:"50%"}),b.aC.19("3k","3h").1Y(!0,!0).5d(9i)}).1N("22",f.1f[d.T("1O")].T.2p),b.8e.19({3k:"5p"}).1Y().8f({1I:a(R).66().1I+(a(R).1a()-b.8e.4H())/2},9i),b.eN.19({3k:"3h",6b:"4J"}).1Y().5d(9i)}).on("6m."+e,S(){b.eN.1Y().5E(9i,S(){b.8e.19({6b:"4A",3k:"5p"})})})}b.20.3g(f.1f.3n.1O),"1r"==f.o.65&&b.20.1r()},20:{3g:S(a){"28"==1t a&&(a=f.1f.2x.1O),a--,c.1y(".ls-1T-9g a").4g("ls-31-3g"),c.1y(".ls-1T-9g a:eq( "+a+" )").2j("ls-31-3g")},1r:S(){18 b=f.1q.2g.1T.ci,d=a(\'<1z 2m="ls-2p-1r"><1z 2m="ls-2p-1r-cn"><1z 2m="ls-2p-1r-bg"><1z 2m="ls-2p-1r-3I"><3I><7X>\').2c(c.1y(".ls-1T-9g"));c.1y(".ls-2p-1r, .ls-2p-1r-3I").19({1a:f.o.dT,1b:f.o.9C}),b.8e=c.1y(".ls-2p-1r"),b.aC=b.8e.1y("3I").19({1b:f.o.9C}),b.eN=c.1y(".ls-2p-1r-cn").19({6b:"4A",3k:"5p"}),d.2c(c.1y(".ls-1T-9g"))}}},iZ:S(){R.aE=a(\'\').on("54."+e,S(a){a.3P(),c.4Q("3f")}).ak(c.1y(".ls-1T-31-1M")),R.aF=a(\'\').on("54."+e,S(a){a.3P(),c.4Q("1Y")}).2c(c.1y(".ls-1T-31-1M")),f.o.97?R.aG("3f"):R.aG("1Y")},aG:S(a){if(f.o.9K)2J(a){1g"3f":R.aE.2j("ls-31-3f-3g"),R.aF.4g("ls-31-1Y-3g");1A;1g"1Y":R.aE.4g("ls-31-3f-3g"),R.aF.2j("ls-31-1Y-3g")}},j0:S(){a(\'<7X 2m="ls-31-jd ls-31-jz" />\').ak(c.1y(".ls-1T-31-1M")),a(\'<7X 2m="ls-31-jd ls-31-jy" />\').2c(c.1y(".ls-1T-31-1M"))},9e:S(){18 a=R;a.1M.19({3k:"3h"}),c.on("6w."+e,S(){f.1q.2g.eG||a.1M.1Y(!0,!0).5d(56)}).on("6m."+e,S(){a.1M.1Y(!0,!0).5E(56)})},eU:S(a){if(f.o.aZ&&!c.6Z("ls-1r"))2J(a){1g"on":f.1q.2g.1T.4K.1M.19({6b:"4A",3k:"5p"});1A;1g"7E":f.1q.2g.1T.4K.1M.19({6b:"4J",3k:"3h"})}},4K:{1h:S(){18 b=R;R.1M=a(\'<1z 2m="ls-1q-1o ls-2p-1M">\').2c(c),a(\'<1z 2m="ls-2p"><1z 2m="ls-2p-cn"><1z 2m="ls-2p-24-4F"><1z 2m="ls-2p-24">\').2c(R.1M),R.$1o=c.1y(".ls-2p-24-4F"),"cu"in 1i?R.$1o.2j("ls-jx"):R.$1o.on("6w."+e,S(){a(R).2j("ls-2p-24-1r")}).on("6m."+e,S(){a(R).4g("ls-2p-24-1r"),f.1q.2g.1T.4K.2b()}).on("9m."+e,S(b){18 c=1d(b.cw-a(R).6g().1I)/a(R).1a()*(a(R).1a()-a(R).1y(".ls-2p-24").1a());a(R).1y(".ls-2p-24").1Y().19({3J:c})});2e(18 d=0;d<3I 22="\'+f.1f[g].T.2p+\'">\');h.T("1O",g).on("54."+e,S(b){b.3P(),c.4Q(a(R).T("1O"))}).2c(c.1y(".ls-2p-24")),"cu"in 1i||h.on("6w."+e,S(){a(R).3S().1Y().cy(56,f.o.e5/1j)}).on("6m."+e,S(){a(R).3S().6Z("ls-7a-3g")||a(R).3S().1Y().cy(56,f.o.ec/1j)})}f.1q.2g.1T.aE&&f.1q.2g.1T.aF&&(f.1q.2g.1T.1M=a(\'<1z 2m="ls-1T-31-1M ls-nZ-4K">\').2c(c),f.1q.2g.1T.aE.bX().on("54."+e,S(a){a.3P(),c.4Q("3f")}).2c(f.1q.2g.1T.1M),f.1q.2g.1T.aF.bX().on("54."+e,S(a){a.3P(),c.4Q("1Y")}).2c(f.1q.2g.1T.1M)),f.o.aZ&&b.9e()},9e:S(){18 a=R;a.1M.19("3k","3h"),f.1q.2g.1T.1M&&(f.1q.2g.1T.1M="5p"==f.1q.2g.1T.1M.19("3k")?f.1q.2g.1T.1M:c.1y(".ls-j1-4K"),f.1q.2g.1T.1M.19("3k","3h")),c.on("6w."+e,S(){c.2j("ls-1r"),f.1q.2g.eG||(a.1M.1Y(!0,!0).5d(56),f.1q.2g.1T.1M&&f.1q.2g.1T.1M.1Y(!0,!0).5d(56))}).on("6m."+e,S(){c.4g("ls-1r"),a.1M.1Y(!0,!0).5E(56),f.1q.2g.1T.1M&&f.1q.2g.1T.1M.1Y(!0,!0).5E(56)})},69:S(b){18 d=b?b:f.1f.1P.1O;c.1y(".ls-2p-24 a:52(.ls-7a-"+d+" )").3S().3b(S(){a(R).4g("ls-7a-3g").1Y().cy(bc,f.o.ec/1j)}),c.1y(".ls-2p-24 a.ls-7a-"+d).3S().2j("ls-7a-3g").1Y().cy(bc,f.o.e5/1j)},2b:S(){if(!c.1y(".ls-2p-24-4F").6Z("ls-2p-24-1r")){18 a=!!c.1y(".ls-7a-3g").1n&&c.1y(".ls-7a-3g").4p();if(a){18 b=a.66().1I+a.1a()/2,d=c.1y(".ls-2p-24-4F").1a()/2-b;d=d0?0:d,c.1y(".ls-2p-24").8f({3J:d},jw)}}},1x:S(){f.1q.2g.1T.eU("on");18 a=f.X.3X.1a.1c("%")==-1?1d(f.X.3X.al):c.1a(),b=c.1y(".ls-2p"),d=f.o.aY.1c("%")==-1?1d(f.o.aY):1d(a/1j*1d(f.o.aY));c.1y(".ls-2p-24 a").19({1a:1d(f.o.dT*f.1x.1D),1b:1d(f.o.9C*f.1x.1D)}),c.1y(".ls-2p-24 a:f2").19({6O:0}),c.1y(".ls-2p-24").19({1b:1d(f.o.9C*f.1x.1D)}),b.19({1a:d*1u.3C(1j*f.1x.1D)/1j}),b.1a()>c.1y(".ls-2p-24").1a()&&b.19({1a:c.1y(".ls-2p-24").1a()}),f.1q.2g.1T.eU("7E")}}}},43:{48:S(){c.2j("ls-"+f.o.43);18 g,b=f.o.8U+f.o.43+"/43.19",d=a(a("a2").1n?"a2":"3z");a(\'4Y[4y="\'+b+\'"]\').1n?(g=a(\'4Y[4y="\'+b+\'"]\'),f.1q.43.67||(f.1q.43.67=!0,f.2F.dv=5z(S(){2l f.2F.dv,f.X.1h()},aM))):2w.jq?(2w.jq(b),g=a(\'4Y[4y="\'+b+\'"]\')):g=a(\'<4Y jp="jk" 4y="\'+b+\'" 1W="4T/19" />\').2c(d),g.on("48."+e,S(){f.1q.43.67||(f.1q.43.67=!0,f.2F.eT=5z(S(){2l f.2F.eT,f.X.1h()},aM))}),a(1i).on("48."+e,S(){f.1q.43.67||(f.1q.43.67=!0,f.2F.eS=5z(S(){2l f.2F.eS,f.X.1h()},aM))}),f.2F.eB=5z(S(){f.1q.43.67||(f.1q.43.67=!0,2l f.2F.eB,f.X.1h())},3y)}},47:{1h:S(){R.20(),R.1x()},20:S(){R.$1o=a(\'<1z 2m="ls-1q-1o ls-47">\').2c(c),"5p"!=R.$1o.19("3k")||R.$1o.1y("3I").1n||(R.6h=S(){f.1q.47.$1o.19({3k:"3h",6b:"4J"}).5d(6d,S(){f.1q.47.6h=!1})},R.5i=a("<3I>").1N("22",f.o.8U+f.o.43+"/47.ei").2c(R.$1o),R.iK="4L"==1t 1d(c.19("4s-1T"))?1d(c.19("4s-1T")):0)},1x:S(){R.5i&&(R.5i.1b()>0?R.iK>0?R.$1o.19({1b:R.5i.1b()/2}):R.$1o.19({1b:R.5i.1b(),58:-R.5i.1b()/2}):f.2F.iI=5z(S(){2l f.2F.iI,f.1q.47.1x()},50))}},2f:{1h:S(){f.o.ic&&R.4m.5N(),f.o.ih&&R.3Q.5N();18 b=!1;b=f.o.ii?a("<1z>").jH(c):a(\'[T-2E-2e="\'+c.1N("id")+\'"], [T-2E-2e="\'+e+\'"]\'),b.1n&&(b.2j("ls-1q-1o"),R.2E.5N(b))},4m:{5N:S(){R.$1o=a("<1z>").2j("ls-1q-1o ls-4m-io").2c(c)}},3Q:{5N:S(){R.$1o=a("<1z>").2j("ls-1q-1o ls-3Q-io").2c(c),R.$1o.8u(a(\'<1z 2m="ls-ct-81"><1z 2m="ls-ct-1I"><1z 2m="ls-ct-3O"><1z 2m="ls-ct-il"><1z 2m="ls-ct-ik"><1z 2m="ls-ct-3L"><1z 2m="ls-ct-3O"><1z 2m="ls-ct-il"><1z 2m="ls-ct-ik">\')),R.$1o.T("2T",{2V:R.$1o.19("2V")})}},2E:{$5k:[],$1o:[],$ed:[],$74:[],$bP:[],e9:[],ab:[],76:[],5N:S(b){18 g,d=a(2w),h=R,i=S(a,b){g=(a.cw?a.cw:f.1m.i6)-h.$1o[b].6g().1I-h.76[b]/2,g<0&&(g=0),g>h.ab[b]-h.76[b]&&(g="e4( 1j% - "+f.1q.2f.2E.76[b]+"px )"),h.$74[b].19({1I:g}),f.W.1G&&f.W.1G.3t("55"==1t g?f.W.1e.1l.3t:g/(h.ab[b]-h.76[b])*f.W.1e.1l.3t)},j=S(b,c){a(2w).7E("9m."+e),a("3z").62("9E",!1).4g("ls-9E"),f.o.a6&&!f.1w.2u.6x||f.X.53||!f.W.1G||f.o.5D||(f.W.1e.1l.2u.dN===!0?f.W.1e.1l.84():f.W.1e.1l.2K())};a.3b(b,S(b,c){h.$5k[b]=a(c).2j("ls-2E-4F "+e),h.$1o[b]=a("<1z>").2j("ls-2E").2c(h.$5k[b]),h.$ed[b]=a("<1z>").2j("ls-jX").2c(h.$1o[b]),h.$74[b]=a("<1z>").2j("ls-2E-X-4F").2c(h.$5k[b]),h.$bP[b]=a("<1z>").2j("ls-2E-X").2c(h.$74[b]),h.76[b]=h.$74[b].1a(),h.$74[b].19({58:-h.$bP[b].4D()/2}),h.$5k[b].on("92."+e,S(a){i(a,b)}),h.$5k[b].on("jZ."+e+" hG."+e,S(c){f.W.1e.1l.5g(0),a("3z").62("9E",!0).2j("ls-9E"),a(2w).on("9m."+e,S(a){i(a,b)}),i(c,b)}),d=d.1s(h.$bP[b])}),d.on("k1."+e+"hx."+e,S(b){a(b.5f).3K(c).1n||(f.W.1G&&f.W.1e.1l.2u.7w&&f.W.1G.3t()!==f.W.1e.1l.3t&&f.1H.2O(f.W.1e.1l,{7w:!1}),j(b))})}}},bo:{1h:S(){R.$1o=a("<1z>").19({3k:"3h"}).2j("ls-1q-1o ls-hs-4F").2c(c),a("<1z>").2j("ls-hs-k5").2c(R.$1o)},6h:S(){R.$1o.3U(k6).5d(56)},4P:S(){R.$1o.1Y(!0,!0).5E(56)}}},f.2g={2G:"1P",1h:S(){f.1f.3i>1&&(R.20.hj(),R.20.hh())},20:{hj:S(){f.o.i1&&a("3z").on("k9."+e,S(a){f.X.kb||f.X.kc||(37==a.hb?f.2g.2I():39==a.hb&&f.2g.1P())})},hh:S(){"cu"in 1i&&f.o.i8&&(f.X.$5h.on("hG."+e,S(a){18 b=a.63?a.63:a.8D.63;1==b.1n&&(f.1m.cl=f.1m.9q=b[0].cI)}),f.X.$5h.on("92."+e,S(a){18 b=a.63?a.63:a.8D.63;1==b.1n&&(f.1m.9q=b[0].cI),1u.3G(f.1m.cl-f.1m.9q)>45&&a.3P()}),f.X.$5h.on("hx."+e,S(a){1u.3G(f.1m.cl-f.1m.9q)>45&&(f.1m.cl-f.1m.9q>0?c.4Q("ag"):c.4Q("af"))}))}},2I:S(){R.2G="2I",R.bC="2I",f.1w.20.9I("2I")},1P:S(){R.2G="1P",R.bC="1P",f.1w.20.9I("1P")},3f:S(){f.1H.2O(f.1w,{6x:!0,4c:!1}),f.1w.2u.9v===!0&&f.1H.2O(f.1w,{9v:!1}),f.1q.2g.1T.aG("3f"),f.1w.2u.9u||1!==f.W.1G.5r()&&f.W.1e.1l.84(),f.1w.3f()},1Y:S(){f.1q.2g.1T.aG("1Y"),f.o.a6&&f.W.1e.1l.5g(),f.1w.1Y()}},f.5P={1h:S(){f.X.$7q.1y(".ls-24 3I").3b(S(){18 b=a(R),c=b[0],d={};if(b.is(".ls-2P, .ls-bg")){if(c.9w("1a")&&(d.1a=c.9w("1a")),c.9w("1b")&&(d.1b=c.9w("1b")),c.bw&&(d.bw=c.bw),c.bp&&f.o.eX){d.bk=c.bp,d.7W=c.ek;18 e=d.bk.1F(",").kx(S(b){1J 1d(a.3V(b).1F(" ")[1])});d.4j=1u.3Y.ky(2B,e)}b.7C("1a").7C("1b").7C("bw").7C("bp"),a.4u(d)||(b.T(f.1k.1h.1Q).7A=d)}b.T("22")?d.7W&&b.T("22",d.7W):b.T("22",d.7W?d.7W:c.22),b.1N("22","T:5i/kz;kA,kB///kC")})},ds:S(b,d){if(f.1f[b].8y!==!0){R.7u=b,d?(R.9R=d,f.1H.2O(f.X,{9M:!0}),f.1q.bo.6h()):R.9R=!1,f.X.fh&&c.19({6b:"4J"}),R.6E=[];18 g,h,e=R;f.X.$7q.1y(".ls-24:eq("+(e.7u-1)+") *").3b(S(){g=a(R),h=R;18 b=g.T(f.1k.1h.1Q);if(g.is("3I")){g.T("22")&&g.1N("22",g.T("22")),b&&b.7A&&b.7A.bk&&f.o.eX&&(h.bp=b.7A.bk);18 c=h.22,d=!!(b&&b.7A&&b.7A.7W)&&b.7A.7W;d&&c!==d&&g.is(".ls-bg")&&(c=d,f.1f[e.7u].T.$2i.1N("22",c)),f.5P.6E.4W([c,g])}2y"3h"!==g.19("2i-5i")&&g.19("2i-5i").1c("6C")!==-1&&f.5P.6E.4W([g.19("2i-5i").4b(/6C\\((.*)\\)/)[1].2k(/"/gi,""),g])}),f.W.4o&&f.o.8Q&&f.5P.6E.4W([f.o.8Q,a()]),R.fc||R.4K(),0===R.6E.1n?R.4n():R.3f()}2y f.X.b8&&d&&(f.1x.e3(f.1e.3c("1P, bg")),f.1x.1e(d))},4K:S(){2e(18 a=f.X.4K.1p(S(a,b,c){1J c.1c(a)==b}),b=a.1n,c=0;ck&&k>=0&&(g=k),f.o.dB&&("6a"===i||"6n"===i&&"ey"!==f.o.am)){18 o=(c.4p(),d.6g().1I),p=1d(d.19("4s-1I"))||0,q=1d(d.19("6M-1I-1a"))||0;c[0].1R.4j="3h",c[0].1R.3J=-(o+p+q)+"px",g=f.1m.8N||a(1i).1a()}2J(g-=e.aQ,f.X.2u.6v&&(g=f.1m.1a),i){1g"1V":f.X.2u.6v?(f.1m.1D>e.1D?R.1D=f.1m.1b/e.1b:R.1D=f.1m.1a/e.1a,g=1u.6j(e.1a*R.1D),h=1u.6j(e.1b*R.1D)):(R.1D=g/e.1a,h=1u.6j(e.1b*R.1D));1A;1g"6a":ge.aD/e.1b?(R.1D=f.1m.1b/e.1b,h=f.1m.1b):(R.1D=f.1m.1a/e.aD,h=e.1b*R.1D):(R.1D=1,h=e.1b);1A;1g"6n":2J(f.o.am.4x()){1g"4V":h=f.1m.4v-e.bM;1A;1g"ho":h=f.1m.4v-e.bM,f.X.2u.6v||(h-=f.X.dk?f.X.dk:f.X.49);1A;1g"ey":g=c.4p().1a()-e.aQ,h=c.4p().1b()-e.bM}j=g/h,j0&&R.1D>f.o.5F?f.o.5F:R.1D,b.1R.1a=g+"px",b.1R.1b=h+"px",f.X.1a=g,f.X.1b=h},3N:S(b){2e(18 c=(""+b).1F(" "),d="",e=f.o.5F&&f.o.5F>0&&R.1D>f.o.5F?f.o.5F:R.1D,g=0,h=c.1n;g0?(h-q*d)/2:0,p=r>0?(i-r*d)/2:0):(o=o<0?0:o,p=p<0?0:p);2e(18 s=0,t=e.1n;sj?(E.1a=h,E.1b=E.1a/x.1D):(E.1b=i,E.1a=E.1b*x.1D)}E.4H=E.1a+E.6R+E.6Q+E.6N+E.6K,E.4D=E.1b+E.6P+E.6s+E.6I+E.6H,F.1a=G.1a=E.4H,F.1b=G.1b=E.4D,x.1I.1c("%")!=-1?"1j%"===x.1I?0===C?E.1I=f.X.1a/1j*1d(x.1I)-E.4H:E.1I=C+q*d/1j*1d(x.1I)-E.4H:"0%"===x.1I?0===C?E.1I=0:E.1I=C:0===C?E.1I=f.X.1a/1j*1d(x.1I)-E.4H/2:E.1I=C+q*d/1j*1d(x.1I)-E.4H/2:E.1I=C+1d(x.1I)*d,F.1I=E.1I,x.1Z.1c("%")!=-1?"1j%"===x.1Z?0===D?E.1Z=f.X.1b/1j*1d(x.1Z)-E.4D:E.1Z=D+r*d/1j*1d(x.1Z)-E.4D:"0%"===x.1Z?0===D?E.1Z=0:E.1Z=D+0:0===D?E.1Z=f.X.1b/1j*1d(x.1Z)-E.4D/2:E.1Z=D+r*d/1j*1d(x.1Z)-E.4D/2:E.1Z=D+1d(x.1Z)*d,F.1Z=E.1Z}w.1V=E,k[s]=E,w.is.5w||w.is.2n||(w.2R.cT.1V=F,l[s]=F,m[s]=G,n[s]=H)}2e(18 K=0,L=k.1n;K0)2e(18 a=0,b=f.1q.2f.2E.$5k.1n;a").2j("ls-24-1X-1M").19({1a:f.X.1a,1b:f.X.1b}),R.b1.fZ())},b1:{fZ:S(){f.W.24.4V.b1.fW()}},3f:S(a){18 b,d=!(!f.1f.2x.1O||!f.1f.2x.T.$2n.1n),e=!(!f.1f.1P.1O||!f.1f.1P.T.$2n.1n);if(!f.1w.8E&&f.2t.3W("fV")&&c.4f("fV",f.2t.4G()),!a&&("28"!=1t f.W.27.T.aq&&f.W.3s.1K(f.W.27.T.aq),f.23&&f.1C.4k.aq&&f.W.3s.1K(f.1C.4k.aq),f.W.1e.1l.6U>.25)){18 h=f.W.3s.1K()/(.75+f.W.1e.1l.6U);h=h<.5?.5:h,f.W.3s.1K(h)}18 l,i=f.W.3s.1K()/f.W.3s.5r(),j=i,k=f.W.27.T.aB;k>0?k=0:k<0&&1u.3G(k)>i&&(k=-i),f.W.27.T.b0=k,l=f.W.4o?f.o.bx+.lY:(j+k)*f.W.3s.5r(),(d||e)&&f.W.1S.fS(f.W.4o,!(!d||!e)),f.W.3s.fP(S(){!f.1w.8E&&f.2t.3W("fN")&&c.4f("fN",f.2t.4G()),f.1w.4S.69||f.W.1e.1l.fL(),f.1S.1Y(),f.1f.20.gP(),f.1w.3f(),!f.W.4o&&f.1f.2I.1O&&f.1f.2I.T.$2n.1n&&!f.1f.2I.T.$2n.T(f.1k.1h.1Q).2H.eO&&(f.1f.2I.T.$2n.5x("a7"),f.1f.2I.T.$2n.T(f.1k.1h.1Q).26.$8n.19({3k:"3h"})),f.1w.4S.69||f.1f.1P.T.$2n.1n&&!f.1f.1P.T.$2n.T(f.1k.1h.1Q).2H.eJ&&(f.1f.1P.T.$2n.5x("dZ"),f.1f.1P.T.$2n.T(f.1k.1h.1Q).2H.eJ=!0),f.W.4o=!1},[],R,l),f.W.3s.2K(),"28"!=1t f.W.3j.T&&"28"!=1t f.W.3j.T.$2i&&(b=f.W.3j.T.$2i.T(f.1k.1h.1Q),f.2F.fE=5z(S(){2l f.2F.fE,f.W.3j.T.$2i.3K(".ls-bg-5B").4P(),b.2o.6k&&g.2Z.20(f.W.3j.T.$2i[0],{2h:!1,19:b.2o.3w})},5))},4n:S(){18 a;"28"!=1t f.W.27.T.$2i&&f.W.27.T.$2i.3K(".ls-bg-5B").6h(),"5J"!==f.W.27.T.2U?f.X.$5h.19("2i-4e",f.W.27.T.2U):f.X.$5h.19("2i-4e",f.o.8T),f.o.m7||f.1m.$9n.4g("ls-gc-4A ls-g9-4A ls-4R-4A"),R.$1M&&(R.$1M.4Z("").5T(),R.$1M=!1),f.1q.2g.1T.ci.20.3g(),f.o.5t>0&&(f.1w.5O("de")?f.1w.5t.6u(f.W.27.1O)&&(f.2g.1Y(),f.1H.2O(f.1w,{9v:!0}),f.o.cL&&(f.1w.b2=1)):f.1w.5t.20()),f.1H.2O(f.X,{86:!1,8k:!1}),!f.1w.8E&&f.2t.3W("fC")&&c.4f("fC",f.2t.4G()),f.1w.8E=!1,f.1w.4S.69!==!1&&f.2g.bC?("28"!=1t f.W.3j.T&&"28"!=1t f.W.3j.T.$2i&&(a=f.W.3j.T.$2i.T(f.1k.1h.1Q),f.W.3j.T.$2i.3K(".ls-bg-5B").4P(),a.2o.6k&&g.2Z.20(f.W.3j.T.$2i[0],{2h:!1,19:a.2o.3w})),f.1w.6V(f.1w.3c.9L(f.2g.bC),!0)):f.5P.ds(f.1f.1P.1O)},4V:{b1:{fW:S(){if(f.o.6L)1J 5m f.W.24.4V.eF(f.o.6L.1W,f.o.6L.mc);18 a,b,c=!!f.W.27.T.7f&&f.W.27.T.7f.d3().1F(",");f.1m.af&&f.o.eV?(f.1m.af=!1,R.1X("2d","1")):f.1m.ag&&f.o.eV?(f.1m.ag=!1,R.1X("2d","1")):f.1f.1P.T.$2i||c&&(!c||c.1c("1")!=-1||c.1c("2")!=-1||c.1c("3")!=-1||c.1c("4")!=-1)?f.6S.fy()&&(f.W.27.T.7Y||f.W.27.T.7i)?f.W.27.T.7Y&&f.W.27.T.7i?(a=1u.3C(2*1u.2C()),b=[["3d",f.W.27.T.7Y],["fs",f.W.27.T.7i]],R.1X(b[a][0],b[a][1])):f.W.27.T.7Y?R.1X("3d",f.W.27.T.7Y):R.1X("fs",f.W.27.T.7i):f.W.27.T.7f&&f.W.27.T.7g?(a=1u.3C(2*1u.2C()),b=[["2d",f.W.27.T.7f],["fq",f.W.27.T.7g]],R.1X(b[a][0],b[a][1])):f.W.27.T.7f?R.1X("2d",f.W.27.T.7f):f.W.27.T.7g?R.1X("fq",f.W.27.T.7g):R.1X("2d","1"):R.1X("2d","5")},1X:S(a,b){f.23&&f.1C.1s("7P","6L.6F"),b+="";18 e,g,c=a.1c("ex")==-1?f.t:f.ct,d="3d";if(a.1c("2d")!=-1&&(d="2d"),b.1c("f2")!=-1)g=c["t"+d].1n-1,e="f2";2y if(b.1c("5l")!=-1)g=1u.3C(1u.2C()*f.1H.ff(c["t"+d])),e="2C 3w 5l";2y{18 h=b.1F(","),i=h.1n;g=1d(h[1u.3C(1u.2C()*i)])-1,e="2C 3w mk"}"28"==1t c["t"+d][g]&&(f.23&&f.1C.1s("2z","6L.ml",[d.es()+(a.1c("ex")===-1?"":" (f6)"),g+1]),c=f.t,a=d="2d",g=0),f.23&&f.1C.1s("59","6L.6F",[d.es()+(a.1c("ex")===-1?"":" (f6)"),g+1,c["t"+d][g].9B]),f.W.24.4V.eF(d,c["t"+d][g])}},eF:S(b,c){18 i,j,k,l,d=a.5y(!0,{6X:1,6Y:1},c),e=1t d.6X,h=1t d.6Y,m=[],n=f.2g.2G,o=0,p=0,q=!!f.W.3j.T.$2i&&f.1H.ac(f.W.3j.T.$2i),r=!!f.W.27.T.$2i&&f.1H.ac(f.W.27.T.$2i),s=f.o.5D&&"8K"===f.1m.2b.2G?"2A":"3w";2J(e){1g"4L":e=d.6X;1A;1g"55":e=1u.3C(1u.2C()*(1d(d.6X.1F(",")[1])-1d(d.6X.1F(",")[0])+1))+1d(d.6X.1F(",")[0]);1A;5b:e=1u.3C(1u.2C()*(d.6X[1]-d.6X[0]+1))+d.6X[0]}2J(h){1g"4L":h=d.6Y;1A;1g"55":h=1u.3C(1u.2C()*(1d(d.6Y.1F(",")[1])-1d(d.6Y.1F(",")[0])+1))+1d(d.6Y.1F(",")[0]);1A;5b:h=1u.3C(1u.2C()*(d.6Y[1]-d.6Y[0]+1))+d.6Y[0]}if(f.1m.7Z&&f.o.j9?(e>=15?e=7:e>=5?e=4:e>=4?e=3:e>2&&(e=2),h>=15?h=7:h>=5?h=4:h>=4?h=3:h>2&&(h=2),h>2&&e>2&&(h=2,e>4&&(e=4))):(e=e>35?35:e,h=h>35?35:h),f.23&&!f.o.6L&&(f.1C.1s("59","6L.5j",[[e,h],e*h]),f.1C.8s()),i=1u.3C(f.X.1a/e),j=1u.3C(f.X.1b/h),k=f.X.1a-i*e,l=f.X.1b-j*h,"2I"==n){18 t={2C:"2C",7H:"3l",3l:"7H","8o-7H":"8o-3l","8o-3l":"8o-7H"};d.64&&d.64.3H&&(d.64.3H=t[d.64.3H]),a.3b(["4r","71","6q"],S(a,b){if(d[b]&&d[b].1X){18 c=d[b].1X;c.5A&&1u.3G(c.5A)>44&&(c.5A*=-1),c.5Q&&1u.3G(c.5Q)>44&&(c.5Q*=-1),c.3O&&(c.3O*=-1)}})}2e(18 u=0;u").2j("ls-mG").2c(f.W.24.$1M),R.$dX=a("<1z>").2j("ls-mI").2c(f.W.24.$1M)}2e(18 x=0;x(h-1)*e-1?l:0,A=a("<1z>").2j("ls-24-1X-64").19({1a:i+y,1b:j+z}).T("1R",{1a:i+y,1b:j+z}).2c(f.W.24.$1M);m[x]==e*h-1&&S(){f.W.24.4n()};if(o=x%e===0?o+1:o,p=x%e===0?1:p+1,"3d"==b){A.2j("ls-3d-4F");18 N,O,P,Q,U,V,Y,L=i+y,M=j+z,Z=4h g.6r;Y=1u.3G(1u.3G(p-e/2-.5)-e/2-.5)*1u.3G(1u.3G(o-h/2-.5)-h/2-.5),A.19({72:Y}),N="iP"==d.4r.2G?1u.3G(d.4r.1X.5Q)>90&&"iM"!=d.64.iL?1u.3C(L/7)+y:L:1u.3G(d.4r.1X.5A)>90&&"iM"!=d.64.iL?1u.3C(M/7)+z:M,O=L/2,P=M/2,Q=N/2,R.70("ls-3d-6f",A,0,0,0,0,-Q,0,0,O+"px "+P+"px iH"),R.70("ls-3d-iG",A.1y(".ls-3d-6f"),L,M,0,0,Q,0,0),"mX"==d.4r.2G&&1u.3G(d.4r.1X.5A)>90?R.70("ls-3d-bd",A.1y(".ls-3d-6f"),L,M,0,0,-Q,bf,0):R.70("ls-3d-bd",A.1y(".ls-3d-6f"),L,M,0,0,-Q,0,bf),R.70("ls-3d-1I",A.1y(".ls-3d-6f"),N,M,-Q,0,0,0,-90),R.70("ls-3d-3L",A.1y(".ls-3d-6f"),N,M,L-Q,0,0,0,90),R.70("ls-3d-1Z",A.1y(".ls-3d-6f"),L,N,0,-Q,0,90,0),R.70("ls-3d-1T",A.1y(".ls-3d-6f"),L,N,0,M-Q,0,-90,0),B=A.1y(".ls-3d-iG"),C="iP"==d.4r.2G?1u.3G(d.4r.1X.5Q)>90?A.1y(".ls-3d-bd"):d.4r.1X.5Q>0?A.1y(".ls-3d-1I"):A.1y(".ls-3d-3L"):1u.3G(d.4r.1X.5A)>90?A.1y(".ls-3d-bd"):d.4r.1X.5A>0?A.1y(".ls-3d-1T"):A.1y(".ls-3d-1Z"),U=m[x]*d.64.3U,V=f.W.24.$1M.1y(".ls-3d-4F:eq( "+x+" ) .ls-3d-6f"),d.71&&d.71.1X?(d.71.1X.3U=d.71.1X.3U?(d.71.1X.3U+U)/3y:U/3y,Z.2A(V[0],d.71.1K/3y,f.1H.2L.1X(d.71.1X,d.71.4I))):d.4r.1X.3U=d.4r.1X.3U?(d.4r.1X.3U+U)/3y:U/3y,Z.2A(V[0],d.4r.1K/3y,f.1H.2L.1X(d.4r.1X,d.4r.4I)),d.6q&&(d.6q.1X||(d.6q.1X={}),Z.2A(V[0],d.6q.1K/3y,f.1H.2L.1X(d.6q.1X,d.6q.4I,"6q"))),f.W.3s.1s(Z,0)}2y{18 ea,fa,ga,ha,ia,ja,ka,la,$="2D",3T="2D",aa="2D",ba="2D",ca=1,da=1,ma={};2J("2C"==d.1X.2G?(ea=["1Z","1T","3L","1I"],fa=ea[1u.3C(1u.2C()*ea.1n)]):fa=d.1X.2G,d.9B.4x().1c("ie")!=-1&&x%2===0&&(n="2I"==n?"1P":"2I"),"2I"==n&&(fa={1Z:"1T",1T:"1Z",1I:"3L",3L:"1I",d5:"d1",d0:"cX",cX:"d0",d1:"d5"}[fa]),fa){1g"1Z":$=aa=-A.T("1R").1b,3T=ba=0;1A;1g"1T":$=aa=A.T("1R").1b,3T=ba=0;1A;1g"1I":$=aa=0,3T=ba=-A.T("1R").1a;1A;1g"3L":$=aa=0,3T=ba=A.T("1R").1a;1A;1g"d5":$=A.T("1R").1b,aa=0,3T=A.T("1R").1a,ba=0;1A;1g"d0":$=A.T("1R").1b,aa=0,3T=-A.T("1R").1a,ba=0;1A;1g"cX":$=-A.T("1R").1b,aa=0,3T=A.T("1R").1a,ba=0;1A;1g"d1":$=-A.T("1R").1b,aa=0,3T=-A.T("1R").1a,ba=0}2J(R.8M=d.1X.2N?d.1X.2N:1,1==v&&1!=R.8M&&($/=2,aa/=2,3T/=2,ba/=2),d.1X.1W){1g"fp":$=aa=3T=ba=0,ca=0,da=1;1A;1g"nk":ca=0,da=1,1==R.8M&&(aa=ba=0)}if((d.1X.3O||d.1X.5A||d.1X.5Q||1!=R.8M)&&"24"!=d.1X.1W?A.19({4R:"4J"}):A.19({4R:"4A"}),1==v?R.$7z.19({4R:"4J"}):R.$7z.19({4R:"4A"}),w===!0||"24"==d.1X.1W||v===!0?(ga=A.2c(R.$7z),ha=A.bX().2c(R.$dX),B=a("<1z>").2j("ls-hV").2c(ga)):ha=A.2c(R.$dX),C=a("<1z>").2j("ls-hU").2c(ha),ia=m[x]*d.64.3U/3y,ja=d.1X.3O?d.1X.3O:0,ka=d.1X.5A?d.1X.5A:0,la=d.1X.5Q?d.1X.5Q:0,"2I"==n&&(ja=-ja,ka=-ka,la=-la),f.W.3s.3Z(C[0],d.1X.1K/3y,{4C:!1,2h:!1,19:{x:-3T,y:-$,3k:"5p",2V:ca,29:ja,3x:ka,3u:la,2N:R.8M}},{2h:!1,19:{x:0,y:0,2V:da,29:0,3x:0,3u:0,2N:1},2r:f.1H.2L.4I(d.1X.4I)},ia),1==w&&("28"==1t f.W.27.T.$2i||"28"!=1t f.W.27.T.$2i&&(f.W.27.T.$2i.1N("22").4x().1c("ei")!=-1||f.W.27.T.$2i.1a()").1N("22",q).19({1a:H.1V.1a,1b:H.1V.1b,"-5o-1p":H.1V.1p,1p:H.1V.1p,"-ms-3r":"4N("+(H.1V.x-D)+"px) 4O("+(H.1V.y-E)+"px)"+H.1V.7Q+H.1V.7I,"-5o-3r":"4N("+(H.1V.x-D)+"px) 4O("+(H.1V.y-E)+"px)"+H.1V.7Q+H.1V.7I,3r:"4N("+(H.1V.x-D)+"px) 4O("+(H.1V.y-E)+"px)"+H.1V.7Q+H.1V.7I})):0===R.$7z.3S().1n&&R.$7z.19("2i-4e",f.W.3j.T.2U).8u(a("<3I>").1N("22",q).19({1a:H.1V.1a,1b:H.1V.1b,"-5o-1p":H.1V.1p,1p:H.1V.1p,"-ms-3r":"4N("+H.1V.x+"px) 4O("+H.1V.y+"px)"+H.1V.7Q+H.1V.7I,"-5o-3r":"4N("+H.1V.x+"px) 4O("+H.1V.y+"px)"+H.1V.7Q+H.1V.7I,3r:"4N("+H.1V.x+"px) 4O("+H.1V.y+"px)"+H.1V.7Q+H.1V.7I}))),"5J"===f.W.3j.T.2U||f.W.3j.T.$2n.1n||("3d"===b||"2d"===b&&(w===!0||"24"===d.1X.1W||v===!0)?B.19("2i-4e",f.W.3j.T.2U):0===R.$7z.3S().1n&&R.$7z.19("2i-4e",f.W.3j.T.2U)),"28"!=1t f.W.27.T.$2i&&(I=f.W.27.T.$2i.T(f.1k.1h.1Q),J=I.2o[s],C.8u(a("<3I>").1N("22",r).19({1a:I.1V.1a,1b:I.1V.1b,"-5o-1p":f.W.27.1p.3w||"3h",1p:f.W.27.1p.3w||"3h","-ms-3r":"4N("+(I.1V.x-D)+"px) 4O("+(I.1V.y-E)+"px) 3O("+J.29+"7N) 2N("+J.2N+")","-5o-3r":"4N("+(I.1V.x-D)+"px) 4O("+(I.1V.y-E)+"px) 3O("+J.29+"7N) 2N("+J.2N+")",3r:"4N("+(I.1V.x-D)+"px) 4O("+(I.1V.y-E)+"px) 3O("+J.29+"7N) 2N("+J.2N+")"}))),"5J"===f.W.27.T.2U||f.W.27.T.$2n.1n||C.19("2i-4e",f.W.27.T.2U)}f.W.24.$1M.ak(f.X.$5h),f.W.24.3f()},70:S(b,c,d,e,f,g,h,i,j,k){18 l="np( "+f+"px, "+g+"px, "+h+"px)";0!==i&&(l+="5A( "+i+"7N)"),0!==j&&(l+="5Q( "+j+"7N)");18 m={1a:d,1b:e,3r:l,"-ms-3r":l,"-5o-3r":l};k&&(m["3r-cP"]=k,m["-ms-3r-cP"]=k,m["-5o-3r-cP"]=k),a("<1z>").2j(b).19(m).2c(c)}}},1e:{in:{80:S(a){18 b=a.T(f.1k.1h.1Q);b.1r.1L&&f.W.1e.1r.83(a)},4n:S(a){18 b=a.T(f.1k.1h.1Q);b.is.b3&&(2B===b.2S.5I&&f.o.iA||b.2S.5I)&&a.1y(".ls-78").5x("8c")}},1E:{gq:S(){if(f.W.57){if(f.W.1G){18 c,d,b=4h g.6r({4c:!0,hH:!0}),e=[],i=1j,j=f.1e.3c("2x, in, 3A, 3g").1s(f.1e.3c("2x, 1E, 3A, 3g")),k=f.1e.3c("2x, 1E, c5, 3g"),l=f.1e.3c("2x, 1E, 3g"),m=a().1s(j).1s(k),n=S(a){b.1s(a,i-a.1K()*a.3t())};m.3b(S(){18 b=a(R),g=b.T(f.1k.1h.1Q);if(g.1v.3F&&(f.W.1G.5T(g.1v.3F),g.1v.3F.2K()),g.is.3A){c=[g.26.$1M[0]],g.26.$8p&&(c=c.cM(g.26.$8p[0])),g.21.5n&&(c=c.cM(g.21.5n));2e(18 h=0;hR.4i&&(R.3t=R.4i/f.W.1G.1K()),f.1f[j].T.1K===-1?(f.1f[j].T.1K=R.4i,f.1f[f.1f[j].1O].T.1K=R.4i):R.4i=f.1f[j].T.1K,R.aV(h,"in",f.W.1G,f.W.57),f.W.1e.1l.5V===!0&&f.23&&f.1C.1s("2z","eY.hi",f.o.eW?"1L":"aO");2e(18 k=0;k\').2c("a2"),f.8g[b].1h&&f.8g[b].1h()):1i.4z&&4z.6A(f.1k.X.9o,b,"5L dy 52 dw dR! pt 8q 6i:",f.8g[b].fU.fz,"(iT pu:",f.5L.6i+")"),f.o.3e.a9(0,1)},g5:S(a){f.4B.cO=bz(S(){1i.2v.cd.1c(a)===-1&&1i.2v.ao.1c(a)===-1||1i.2v.8L.1c(a)!==-1||(a3(f.4B.cO),2l f.4B.cO,f.3e.48())},1j)}},f.X={b8:!0,4K:[],2u:{9M:!1,8k:!1,86:!1},53:!1,85:S(){1J R.2u.9M||R.2u.8k||R.2u.86},48:S(){1J!!2w.3z.7K(b)&&(f.2t.3W("f8")&&c.4f("f8"),5m f.X.20.cp())},20:{cp:S(){if(f.eD=c[0].pz,f.6J=f.1H.2L.5j(f.1H.2L.j8(d)),f.82={},f.o=a.5y(!0,{},f.1k.1h.4k,f.6J),f.o.7n/=3y,f.o.7n=f.o.7n>0?f.o.7n:.75,f.o.bx/=3y,1i.4z&&f.o.el!==!0&&1i.2v.el!==!0){1i.2v.el=!0;18 b=1i.4z.6F?"6F":"59";4z[b]("8q","v"+f.5L.6i,"8r"),4z[b]("pD pE gs pF @ 7L://5e.dH.51/")}18 e={cJ:"1C",js:"1C/5e.1C.js",19:"1C/5e.1C.19"};2w.7G.a0.1c("1C")!==-1&&1i.4z&&(2w.7G.a0.1c("6C=")!==-1&&(1i.2v.7v=2w.7G.a0.1F("6C=")[1].1F("&")[0],e.js=1i.2v.7v+"1C/5e.1C.js",e.19=1i.2v.7v+"1C/5e.1C.19"),"5H"==1t f.o.3e?f.o.3e.4W(e):f.o.3e=[e]),(1i.2v.aR||1i.2v.dG)&&(1i.2v.cg=(1i.2v.aR||1i.2v.dG).22.2k(/\\\\/g,"/").2k(/\\/[^\\/]*$/,"")),"5H"==1t f.o.3e?f.3e.48():f.X.6u.8r()},ef:S(){18 j,k,l,m,r,s,t,w,x,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,d=f.X,g=c.4p(),h=b.1R,i=1i.gT(b,2B),n=1d(b.pG),o=1d(b.pH),p=1d(g.1a()),q=1d(g.1b()),u=f.o.c1,v=f.o.jj,A=f.o.1W.4x();2J(f.23&&f.1C.1s("7P","3o.1R"),f.o.1a?j=f.o.1a.1c("%")==-1?1d(f.o.1a):f.o.1a:h.1a?j=h.1a.1c("%")==-1?1d(h.1a):h.1a:u>0?(j=u,f.23&&f.1C.1s("2z","3o.pI",u)):(j=n,f.23&&f.1C.1s("2z","3o.pJ",n)),l=j,f.o.1b?k=f.o.1b.1c("%")==-1?1d(f.o.1b):f.o.1b:h.1b?k=h.1b.1c("%")==-1?1d(h.1b):h.1b:v>0?(k=v,f.23&&f.1C.1s("2z","3o.pK",v)):(k=o,f.23&&f.1C.1s("2z","3o.pL",q)),m=k,r=""!==h.4j?h.4j.1c("%")===-1?1d(h.4j):h.4j:0,"28"==1t f.6J.1W&&(u>0&&v>0||"1j%"===j&&"1j%"===k?A="6n":u<=0&&v<=0&&f.o.7y<=0?A="28"!=1t f.o.1V&&f.o.1V===!1?"dh":"1V":f.o.7y>0&&(A="6a")),A){1g"1V":f.o.7y=-1,j.1c("%")!==-1&&(j=n,f.23&&f.1C.1s("2z","3o.gn",[A,j,n])),k.1c("%")!==-1&&(j=o,f.23&&f.1C.1s("2z","3o.1V",[A,k,o])),f.23&&u>0&&f.1C.1s("2z","3o.pN",[A,u]),f.23&&v>0&&f.1C.1s("2z","3o.pO",[A,v]);1A;1g"6a":j.1c("%")!==-1&&(f.23&&f.1C.1s("2z","3o.gn",[A,j,n]),j=n),u<=0&&(u=j,f.23&&f.1C.1s("2z","3o.g1",[A,j])),f.o.7y<=0&&(f.o.7y=u,f.23&&f.1C.1s("2z","3o.6a",u)),k.1c("%")!==-1&&(t=q/(1j/1d(k)),f.23&&f.1C.1s("2z","3o.pQ",[A,k,t]),k=t),v<=0&&(v=k);1A;1g"6n":j.1c("%")!==-1&&(s=u>0?u:p,f.23&&f.1C.1s("2z","3o.6n",[A,j,s,p,u]),j=s),u<=0&&(u=j,f.23&&f.1C.1s("2z","3o.g1",[A,j])),k.1c("%")!==-1&&(t=v>0?v:a(1i).1b()/(1j/1d(k)),f.23&&f.1C.1s("2z","3o.pR",[A,k,t,a(1i).1b(),v]),k=t),v<=0&&(v=k,f.23&&f.1C.1s("2z","3o.pS",[A,k]));1A;1g"dh":}c.2j("ls-4F ls-"+A),c.4p().2j("ls-2G-pT"),f.o.iY&&f.o.dB&&("6a"===A||"6n"===A&&"ey"!==f.o.am)&&c.iu(":52(3z, 4Z)").3b(S(){a(R).2j("ls-4R-4J")}),f.6J.ai||"1V"!==A||!f.6J.5O("eg")||f.6J.eg||(f.o.ai="2D",f.23&&f.1C.1s("2z","3o.pW",A)),f.o.ai.2k("1j% 1j%","dd"),w=u>0?u:j,x=v>0?v:k,D=b.1R.3J,"2D"===D?B="2D":""===D?B=1d(i.dK("6O-1I")):(B=1d(b.1R.3J),F=!0),E=b.1R.8x,"2D"===E?C="2D":""===E?C=1d(i.dK("6O-3L")):(C=1d(b.1R.8x),G=!0),B===C&&(""===D&&""===E&&(H=B,B="2D",C="2D"),c.19({3J:"2D",8x:"2D"})),I=""!==h.6R?1d(h.6R):1d(c.19("4s-1I")),K=""!==h.6Q?1d(h.6Q):1d(c.19("4s-3L")),J=""!==h.6P?1d(h.6P):1d(c.19("4s-1Z")),L=""!==h.6s?1d(h.6s):1d(c.19("4s-1T")),M=""!==h.6N?1d(h.6N):1d(c.19("6M-1I-1a")),O=""!==h.6K?1d(h.6K):1d(c.19("6M-3L-1a")),N=""!==h.6I?1d(h.6I):1d(c.19("6M-1Z-1a")),P=""!==h.6H?1d(h.6H):1d(c.19("6M-1T-1a")),d.3X={1W:A,1a:j,1b:k,al:l,b7:m,8S:j/1j,8W:k/1j,aD:u,dj:v,1D:w/x,4j:r,3J:B,8x:C,6R:I,6P:J,6Q:K,6s:L,6N:M,6I:N,6K:O,6H:P,aQ:I+K+M+O,bM:J+L+N+P},f.23&&(f.1C.1s("59","3o.1R",[j,k,l,m,u,v,1d(w/x*1j)/1j,r>0?r:5m 0,[B,C]]),H&&f.1C.1s("2z","3o.6O",H)),a("4Z").1N("id")?a("3z").1N("id")||a("3z").1N("id","ls-cp"):a("4Z").1N("id","ls-cp"),"3A"===h.66&&"j5"===h.66||(b.1R.66="e6"),f.o.dQ&&c[f.o.jm](f.o.dQ),f.X.$7q=a(\'<1z 2m="ls-aU-4F pZ ls-4A" T-5e-f0="\'+e+\'">\').2j(c.1N("2m")).ak("3z"),f.X.$5h=a(\'<1z 2m="ls-cn">\').2c(c),f.X.$gf=a(\'<1z 2m="ls-2i-8a">\').2c(f.X.$5h),f.X.$cf=a(\'<1z 2m="ls-24-q0">\').2c(f.X.$5h),f.X.$7B=a(\'<1z 2m="ls-1e">\').2c(f.X.$5h),f.o.eQ===!0&&f.1m.7Z?(c.2j("ls-8B"),c.3K(".ls-aU-6a-4F").2j("ls-8B"),f.o.97=!1):f.X.6u.dV(),f.o.8Q&&f.X.$5h.19({fO:"6C( "+f.o.8Q+" )",q3:f.o.gS,q4:f.o.h3,bG:f.o.hg,bA:f.o.hD}),f.X.$5h.19({2U:f.o.8T}),"5J"==f.o.8T&&f.o.8Q===!1&&f.X.$5h.19({2i:"3h 5J"})},4k:S(){if(a("4Z").1y(\'82[dS*="9p"]\').1n&&(f.82.iE=a("4Z").1y(\'82[dS*="9p"]\').1N("dS").1F("9p")[1]),a("4Z").1y(\'7O[22*="5e"]\').1n&&a("4Z").1y(\'7O[22*="5e"]\').1N("22").1c("?")!=-1&&(f.82.iw=a("4Z").1y(\'7O[22*="5e"]\').1N("22").1F("?")[1].1F("=")[1]),"28"!=1t 9r&&(f.t=a.5y({},9r)),"28"!=1t aX&&(f.ct=a.5y({},aX)),f.23&&("28"!=1t q8?(f.1C.1s("59","3o.gJ",!1),"28"==1t 9r&&f.1C.1s("2z","3o.q9")):"28"==1t 9r&&f.1C.1s("2z","3o.qa")),"4L"==1t f.o.en&&(f.W.1e.1B.1k.ap=f.o.en),"4L"==1t f.o.ez&&(f.W.1e.1B.1k.7e=f.o.ez),f.o.eC&&(f.W.1e.1B.1k.dU=f.o.eC),f.o.5D&&(f.o.5t=-1,f.o.ad=!0,f.o.5C=!1,f.o.97=!1),f.o.ad){if(f.X.5s=f.1m.5Y>f.X.49-(f.1m.4v-f.X.1b)/2?"et":"er",f.o.5D){18 i,j,k,g=!0,h=4*f.o.fw;f.1m.2b.8I=9i,f.W.1e.1l.6U=0,a(2w).on("qb."+e+" 92."+e,S(a){f.1m.7Z?(i=a.8D.63[0].qc,i>j?f.1m.2b.2G="8K":i0?f.1m.2b.2G="8J":f.1m.2b.2G="8K",k=a.8D.ij),0!==1u.3G(k)&&(f.1m.2b.aK?f.1m.2b.aK!==f.1m.2b.2G&&(f.1m.2b.aK=f.1m.2b.2G,f.W.1e.1l.6U=0):f.1m.2b.aK=f.1m.2b.2G,"9t"===f.X.5s&&(f.1x.c6(),k>=0?f.W.1e.1l.gu():f.W.1e.1l.gm(),g&&(88(f.2F.2b),g=!1,f.W.1e.1l.6U=f.W.1e.1l.6U50?f.1m.2b.8I-50:50},f.1m.2b.8I))))})}a(1i).on("2b."+e,S(){f.X.6u.5s()}),f.2F.hW=5z(S(){f.X.6u.5s()},25)}f.X.fh=!0}},6u:{8r:S(){f.23&&f.1C.1s("59","3o.6F",[f.5L.6i,f.5L.hF,f.6J.eg||"n/a or X 6i is qh 6.0.0",c.1N("id"),e,a.fn.c7,f.82.iw,f.82.iE],!0),f.X.8r||(f.X.8r=!0,R.dg())},dg:S(){f.o.43&&""!==f.o.43&&f.o.8U&&""!==f.o.8U?f.1q.43.48():f.X.1h()},dV:S(){f.1m.7Z&&f.o.eQ!==!1||(f.1m.8Nf.o.eR&&f.o.eR>0?f.X.4P():f.X.6h())},5s:S(){if(2l f.2F.hW,f.o.5D){if(f.1m.2b.2G){18 b="8J"===f.1m.2b.2G?f.1m.5Y:f.X.49-(f.1m.4v-f.1m.4v)/2,c="8J"===f.1m.2b.2G?f.X.49-(f.1m.4v-f.1m.4v)/2:f.1m.5Y;b>c&&("8K"===f.1m.2b.2G&&"et"===f.X.5s||"8J"===f.1m.2b.2G&&"er"===f.X.5s)&&(f.X.5s="9t",f.1x.c6(),f.1m.2b.9S())}}2y{18 d=f.1m.5Y+f.1m.4v/2,g=f.X.49+f.X.1b/2;(1u.3G(d-g)f.X.49+f.X.1b)&&(f.X.5s="9t",a(1i).7E("2b."+e),f.23&&f.1C.1s("59","1w.qi",!1),f.W.1G&&f.W.1e.1l.2K())}}},1h:S(){1J 88(f.2F.dv),88(f.2F.eT),88(f.2F.eS),88(f.2F.eB),f.1m.hz(),f.1m.6p.20(),f.X.20.ef(),f.X.20.4k(),f.1f.1h(),f.1S.1h(),f.1q.2f.1h(),f.1q.bo.1h(),f.5P.1h(),f.1q.47.1h(),f.2g.1h(),f.1w.1h(),f.1f.20.4o(),f.1q.2g.1h(),f.1x.X(),f.2Y.1h(),a(1i).on("1x."+e,S(){f.X.6u.dV(),"9t"===f.X.5s&&f.o.5D&&f.1x.c6(),f.X.b8&&f.1x.5l()}),f.23&&(a(1i).7E(".1C"+e),a(1i).on("1x.1C"+e,S(){f.1C.1s("59","1x.1i",f.1m.8N,!0)})),a(1i).on("dO."+e,S(){f.1m.em(),f.1x.5l()}),f.1m.em(),a(1i).5x("1x"),a(1i).5x("dO"),f.2t.3W("gQ")&&c.4f("gQ",f.2t.4G()),f.1H.2O(f.X,{67:!0}),f.X.2u.gG?5m f.2t.9d("gl"):5m f.1w.6V(f.1f.3n.1O)},4P:S(){c.2j("ls-8B"),c.3K(".ls-aU-6a-4F").2j("ls-8B")},6h:S(){c.4g("ls-8B"),c.3K(".ls-aU-6a-4F").4g("ls-8B")}},f.1H={2L:{2X:S(b,c,d){18 e=a.3V(b),g=e.1F(" "),h="",i=["qp","qq"],j=[f.X.1a,f.X.1b];e=e.2k("qr","0").2k("qs","1j%").2k("qt","50%").2k("qu","50%").2k("hy","0").2k("hA","1j%").2k("1I","0").2k("3L","1j%").2k("81","50%").2k("qv","50%").2k("1Z","0").2k("1T","1j%").1F(" ");2e(18 k=0;k-1;g--)2e(18 h=b-1;h>-1;h--)d.4W(g+h*a);1J d},d7:S(a){2e(18 c,d,b=a.1n;0!==b;)d=1u.3C(1u.2C()*b),b-=1,c=a[b],a[b]=a[d],a[d]=c;1J a},ff:S(a){18 b=0;2e(18 c in a)a.5O(c)&&++b;1J b},ac:S(a){1J a[0].ek?a[0].ek:a.T("22 ")?a.T("22 "):a.1N("22")},2O:S(a,b,d){if(a&&a.2u){18 e=f.1w.53();if(d)a.2u[b]=d;2y 2e(18 g in b)a.2u[g]=b[g];18 h=f.1w.53();a==f.1w&&(f.2t.3W("fA")&&c.4f("fA",f.2t.4G()),h!=e&&(h?f.2t.3W("fx")&&c.4f("fx",f.2t.4G()):f.2t.3W("ju")&&c.4f("ju",f.2t.4G())))}},jr:S(){2e(18 a in f.2F)88(f.2F[a]),2l f.2F[a];2e(18 b in f.4B)a3(f.4B[b]),2l f.4B[b]},jo:S(){f.W.1G&&(f.W.1G.5g().6W().5R(),2l f.W.1G),f.W.57&&(f.W.57.5R(),2l f.W.57),f.W.3s&&(f.W.3s.5g().6W().5R(),2l f.W.3s),g.2Z.qM(c.1y(".ls-bg, .ls-2P, .ls-1M, .ls-hV, .ls-hU").3c())},hu:S(){f.W.1G&&(f.W.1G.5g().3t(0).6W().5R(),2l f.W.1G),f.W.57&&(f.W.57.5g().3t(1).6W().5R(),2l f.W.57),c.1y(".ls-2P:52(.ls-bg-4l)").3b(S(){18 b=a(R).T(f.1k.1h.1Q);b.1v.3F&&(b.1v.3F.1Y().6W(),2l b.1v.3F,g.2Z.20(b.26.$7j[0],b.3v.cZ)),g.2Z.20(b.26.$1M[0],b.3v.cY)})},jn:S(){a(1i).1s("3z").1s(c).1s(c.1y("*")).1s("."+e).7E("."+e+" .1C"+e+" .1B"+e+" .cC"+e)}},f.1m={$9n:a(a("3z").1n?"3z":"4Z"),7Z:!!bS.c4.4b(/(iB|iv|iq|qU|qV|qW|qX|qY qZ|r0|r1 r2|r3 7)/i),ft:!!1i.r4,2b:{8A:[32,33,34,35,36,37,38,39,40],9S:S(){1i.bN&&1i.bN("ip",R.3P,!1),1i.im=R.r7,1i.bi=2w.bi=R.3P,1i.gY=R.3P,2w.gO=R.ge},83:S(){1i.g7&&1i.g7("ip",R.3P,!1),1i.bi=2w.bi=2B,1i.im=2B,1i.gY=2B,2w.gO=2B},3P:S(a){a=a||1i.6D,a.3P&&a.3P(),a.rd=!1},ge:S(a){if(f.1m.2b.8A.1c(a.re)!==-1)1J f.1m.2b.3P(a),!1}},6p:{g4:S(){"6n"==f.X.3X.1W&&"ho"==f.o.am&&(f.X.dk=f.X.49),f.1H.2O(f.X,{6v:!0}),a("3z, 4Z").2j("ls-6p"),b.cQ(),c.5x("6m")},eZ:S(){f.1H.2O(f.X,{6v:!1}),f.1x.5l(),a("3z, 4Z").4g("ls-6p")},du:S(){f.1m.6p.1o()?(f.1m.6p.eZ(),2w.dm()):f.1m.6p.g4()},20:S(){f.o.j3&&(2w.rk||2w.rl||2w.rm||2w.rn)&&(b.cQ=b.cQ||b.ro||b.rp||b.rq,2w.dm=2w.dm||2w.rr||2w.rs||2w.rt,a(2w).on("ru."+e+" rv."+e+" rw."+e+" rx."+e,S(){f.1m.6p.1o()||f.1m.6p.eZ()}),c.on("ry."+e,S(){f.1m.6p.du()}))},1o:S(){1J 2w.rz||2w.rA||2w.rB||2w.rC}},em:S(){R.1a=h5.1a,R.1b=h5.1b,R.8N=a(1i).1a(),R.4v=a(1i).1b(),R.rE=a(2w).1a(),R.hw=a(2w).1b(),R.5Y=a(1i).ck(),R.1D=R.1a/R.1b,f.X.49=c.6g().1Z,f.X.9x=c.6g().1I},hz:S(){18 d,b=R;a(1i).on("1x.cC"+e,S(){b.8N=a(1i).1a(),b.4v=a(1i).1b(),b.1D=b.1a/b.1b,f.X.49=c.6g().1Z,f.X.9x=c.6g().1I}),a(1i).on("2b.cC"+e,S(){b.5Y=a(1i).ck(),f.X.49=c.6g().1Z,f.X.9x=c.6g().1I}),a(1i).on("92",S(a){b.5Y=1i.rF,d=a.63?a.63:a.8D.63,1==d.1n&&(b.i6=d[0].cI)})}},f.2t={3W:S(c){18 d=a.rG(b,"i5");1J!(!d||!d[c])},9d:S(a,b,d,g){if(!f.X.85())if("4L"==1t a)a>0&&a"),d=!1,e=!1,f=["s5","s6","s7","s8","s9"],g=["sa","sb","sc","sd","se"],h=f.1n-1;h>=0;h--)d=d?d:5m 0!==b[0].1R[f[h]];2e(18 i=g.1n-1;i>=0;i--)b.19("3r-1R","ib-3d"),e=e?e:"ib-3d"==b[0].1R[g[i]];1J d&&5m 0!==b[0].1R[f[4]]&&(b.1N("id","ls-sg").2c(c),d=3===b[0].si&&9===b[0].9x,b.5T()),d&&e},fv:bS.c4.1c("sj/5")!==-1},f.8g={},f.2F={},f.4B={},f.1C={4k:{}},f.5L={6i:"6.1.6",hF:"sk. sl. sm."},f.X.48()}}(5c);',62,1759,'|||||||||||||||||||||||||||||||||||||||||||||||||||||this|function|data|||transitions|slider|||||||||||var|css|width|height|indexOf|parseInt|layers|slides|case|init|window|100|defaults|timeline|device|length|element|filter|gui|hover|add|typeof|Math|loop|slideshow|resize|find|div|break|parallax|debug|ratio|out|split|_slideTimeline|functions|left|return|duration|enabled|wrapper|attr|index|next|dataKey|style|media|bottom|transitionProperties|responsive|type|transition|stop|top|set|textIn|src|debugMode|slide||elements|nextSlide|undefined|rotation|clip|scroll|appendTo||for|timers|navigation|autoCSS|background|addClass|replace|delete|class|backgroundVideo|kenBurns|thumbnail|transformPerspective|ease|textOut|api|state|_layerSlider|document|current|else|warn|to|null|random|auto|slidebar|timeouts|direction|mediaProperties|prev|switch|play|convert|startAt|scale|setStates|layer|_transition|settings|mediaSettings|original|backgroundColor|opacity|wrappers|transformOrigin|yourLogo|TweenMax||nav|||||||||values|each|get||plugins|start|active|none|count|curSlide|display|reverse|cursor|first|sliderInit|parseFloat|textOutNodesTo|transform|_slideTransition|progress|rotationY|reset|from|rotationX|1e3|body|static|youtube|floor|textInNodesFrom|player|_timeline|abs|sequence|img|marginLeft|closest|right|controls|borderRadius|rotate|preventDefault|circle|vimeo|children|_|delay|trim|hasEvent|initial|max|fromTo||iframe|styleSettings|skin|||hoverToCSS|shadow|load|offsetTop|loopToCSS|match|paused|outLayerToCSS|color|triggerHandler|removeClass|new|totalDuration|maxWidth|options|video|bar|onComplete|firstSlide|parent|scaleX|animation|padding|inLayerFromCSS|isEmptyObject|viewportHeight|filters|toLowerCase|href|console|hidden|intervals|immediateRender|outerHeight|scaleY|container|eventData|outerWidth|easing|visible|thumbnails|number|inLayerToCSS|translateX|translateY|hide|layerSlider|overflow|should|text|volume|normal|push|self|link|html||com|not|isPaused|click|string|300|_forceLayersOut|marginTop|log|transitionoutstart|default|jQuery|fadeIn|layerslider|target|pause|innerWrapper|image|properties|containerElement|all|void|nodes|webkit|block|html5|timeScale|positionToViewport|cycles|hoverShouldBeConverted|skewY|slideBackground|trigger|extend|setTimeout|rotateX|wrap|pauseOnHover|playByScroll|fadeOut|maxRatio|skewX|object|autoplay|transparent|clipShouldBeConverted|plugin|easeIn|create|hasOwnProperty|preload|rotateY|kill|getStyle|remove|outLayerStyleShouldBeConvertedTo|shouldRestart|createTransition|inLayerStyleShouldBeConvertedFrom|winScrollTop|showinfo||repeat|prop|touches|tile|thumbnailNavigation|position|isLoaded|loopLayerShouldBeConverted|change|fullwidth|visibility|fontSize|500|loopstart|box|offset|show|version|round|zoom|level|mouseleave|fullsize|cycle|fullscreen|after|TimelineMax|paddingBottom|loopend|check|inFullscreen|mouseenter|running|transitioninend|_layerSliders|error|clipTo|url|event|preImages|info|ceil|borderBottomWidth|borderTopWidth|userInitOptions|borderRightWidth|slideTransition|border|borderLeftWidth|margin|paddingTop|paddingRight|paddingLeft|browser|easeOut|timeScaleModifier|changeTo|clear|cols|rows|hasClass|createCuboids|before|zIndex|allMediaLayers|sliderContainerElement||sliderContainerElementWidth|textinstart|vpcontainer|protocol|thumb|transitioninstart|timelineIsCalculated|durationIn|sensitive|transition2d|customtransition2d|splitType|customtransition3d|loopWrapper|allinend|the|shiftNodes|forceLayersOutDuration|onUpdateParams|onUpdate|hiddenWrapper|isNumeric|outClipShouldBeConverted|globals|slideIndex|pluginsPath|finished|lsSliderUID|responsiveUnder|curTiles|attributes|layersWrapper|removeAttr|transformProperties|off|textOutShouldBeConverted|location|forward|kbScale|parallaxWrapper|contains|https|textInShouldBeConverted|deg|script|group|kbRotation|update|minmobilefontsize|minfontsize|distance|layerInit|curSrc|span|transition3d|isMobile|onStart|center|meta|enable|resume|isBusy|animatingSlides|shuffleSlideshow|clearTimeout|getTiming|videos|saved|playVideo|textoutstart|hoverWrapper|animate|initializedPlugins|percentWidth|percentHeight|yoyo|changingSlides|shouldBeConverted|substring|bgWrapper|col|clipWrapper|LayerSlider|initialized|groupEnd|layerShouldBeConverted|append|layerStyleTo|layerStyleFrom|marginRight|wrapped|audio|keys|forcehide|layerTo|originalEvent|firstStart|layerFrom|pausedByVideo|textInNodesTo|timeout|down|up|pluginsBeingLoaded|scale2D|viewportWidth|normalized|layerTransition|globalBGImage|outLayerStyleToCSS|percW|globalBGColor|skinsPath|textinend|percH|calculateTransformProperties|curNext|afterIn||styleProperties|touchmove|inLayerStyleFromCSS|createPlayer|Linear|textoutend|autoStart|title|byline|portrait|slideOut|replay|methods|setHover|always|slidebuttons|easeNone|250|overlay|repeatDelay|transitionoutend|mousemove|overflowWrapper|errorText|WordPress|touchEndX|layerSliderTransitions|setBackgroundVideo|inside|pausedByHover|pausedByLastCycle|getAttribute|offsetLeft|autoPauseSlideshow|true|9999|name|tnHeight|backgroundvideo|unselectable|isSafari|outerWrapper|min|prevNext|outLayerShouldBeConverted|navStartStop|slideInSequence|preloadingImages|loopClipShouldBeConverted|slidechangeonly|durationMove|setRandomProperties|onCompleteCallback|disable|stopped|nodesTo|http|playingInCurSlide|videoElement|videoURL|twoWaySlideshow|hash|getXY|head|clearInterval|easeInOutQuint|allinandloopend|pauseLayers|stopBackgroundVideo|inClipShouldBeConverted|splice||containerElementWidth|getURL|startInViewport|inLayerShouldBeConverted|touchPrev|touchNext|cover|slideBGSize|poster|prependTo|originalWidth|fullSizeMode||pluginsNotLoaded|centerDegree|transitionDuration|originalLeft|originalRight||originalTop|originalBottom|youTubeIsReady|outLayerStyleShouldBeConvertedFrom|outLayerTo|inLayerStyleShouldBeConvertedTo|responsiveLayers|timeShift|hoverImage|layersWidth|buttonStart|buttonStop|setStartStop|inLayerTo|transformPropertiesCalculated|durationOut|lastDirection|Please|150|2e3|disabled|clipFrom|skinWidth|currentScript|bgFrom|fillmode|wp|addLayers|bgTo|layerSliderCustomTransitions|tnContainerWidth|hoverBottomNav|calculatedTimeShift|select|curCycle|mediaLayer|navButtons|durationLeave|layerStyleShouldBeConvertedFrom|originalHeight|shouldResize|lineHeight||letterSpacing|750|back||180||layerStyleShouldBeConvertedTo|onmousewheel|textLayer|srcSet|endedInCurSlide|nodesFrom|mouseMove|loadingIndicator|srcset|setProperties|setMediaElements|Date|now|YT|_tween|sizes|sliderFadeInDuration||setInterval|backgroundPosition|inLayerStyleToCSS|forceDirection|hideThumbnail|checkSlideshowState|removeFromTimeline|backgroundSize|playBackgroundVideo|onSlide|defaultProperties|seekTo|videoEnded|skinHeight|addEventListener|showThumbnail|sliderElement|bgvideo|outLayerStyleFromCSS|navigator|nocookie|youtu|ready|outLayerStyleTo|clone|clipSlideTransition|outClipTo|bgonly|layersContainerWidth|notactive|showUntil|userAgent|notstatic|viewport|jquery|shadowIsChecked|textOutNodesFrom||loopTo|staticfrom|pluginsLoaded|vimeoIsReady|slideBGWrapper|scriptPath|customZIndex|bullets|staticto|scrollTop|touchStartX|hue|inner|blur|global|randomized|easeInOut|animate2D||ontouchstart|onReverseComplete|pageX|animate3D|fadeTo|afterLoop|tablet|desktop|setter|alwaysOnTop|mix|blend|mode|usesFileProtocol|clientX|namespace|onCompleteParams|forceCycles|concat|your|pluginLoaded|origin|requestFullscreen|bgOuterWrapper|outer|wrapperData|waitForJSApisLoaded|slice|splitTypeKeys|bottomleft|wrapperOnSlideChange|loopWrapperOnSlideChange|topright|bottomright|inLayerStyleTo|toString|inClipTo|topleft|slidersList|shuffleArray|outLayerFrom|outLayerFromCSS||outLayerStyleFrom|indexOfSlideInSequence|stretch|cycleSlideIndex|_properties|skins|fixedsize|outClipToCSS|layersHeight|heroTop|loopFromCSS|exitFullscreen|loopClipTo||hoverFromCSS|easeout|scale3d|imagesOfSlide|checkVersions|toggle|skinLoad1|been|beta|has|waitingForYouTube|waitingForVimeo|fitScreenWidth|gamma|navPrevNext|deeplink|GSAP|lsScript|kreaturamedia|loadYouTube|originalLayer|getPropertyValue|alloutandloopend|addShadow|started|orientationchange|isYouTubeReady|insertSelector|loaded|content|tnWidth|centerLayers|showHide|scrollModifier|nextTiles|files|preloadBackgroundVideo|smartLinks|shouldPlay|sortArray|setLayers|calc|tnActiveOpacity|relative|axis|loadVimeo|elementWidth||isVimeoReady|tnInactiveOpacity|progressBarElement|hoverIn|styles|sliderVersion|randomProperties|png|easein|currentSrc|hideWelcomeMessage|getDimensions|parallaxCenterDegree|mouseEnter|canhover||over|toUpperCase|under|tagName|slidesData|words|custom|fitheight|parallaxSensitivity|modifyTimeScale|skinLoad4|parallaxCenterLayers|originalMarkup|setNodesSequence|setTransition|forceHide|are|parentWithNumericWidthValuePercent|isPreloaded|parentWithNumericWidthValue|slideshowOnly|linkto|hoverWrapperInner|willBePaused|yourLogoLink|hideOnMobile|hideOver|skinLoad3|skinLoad2|switchHelper|slideOnSwipe|allowRestartOnResize|useSrcset|slideTimeline|exit|uid|lsDataArraySplitChar|last|phone|textoutandloopend|preloadedImagesCount|CUSTOM|Image|sliderWillLoad|wrapperOnTimelineEnd||LS_GSAP|thumbnailsAreLoaded|slideBGPosition|line|countProp|showNotice|canShow|inLayerFrom|inLayerStyleFrom|inClipFrom|inClipFromCSS|startat||shift|fade|custom2d|deviceTurn|custom3d|supportOrientation|inClipToCSS|isOld|playByScrollSpeed|slideshowDidPause|supports3D|requiredLSVersion|slideshowStateDidChange|sliderDidRemove|slideChangeDidComplete|sholudBeRemoved|applyBG|transitionorigami|lines|use|updateTo|nodeName|loopFrom|prepare|slideout|slideChangeWillComplete|backgroundImage|call|loopClipToCSS|hoverFrom|changeBackgroundVideo|hoverTo|pluginData|slideChangeDidStart|transitionType|charAt|hoverOut|slideTransitionType|substr|conWidth|reverseTimeScale|instanceof|enter|checkLoaded|wrapping|removeEventListener|_gsTransform|overflowy||createTimeline|overflowx|scaleZ|preventDefaultForScrollKeys|bgVideosWrapper|mouseLeave|easeinout||Plugin|page|destroy|scrollBackwards|percWidth|kenburnspan|translateZ|forced|directionAtSlideTransitionStart|and|sw|scrollForward|rect|pan|Height|Width|staggerFromTo|kenburnszoom|tn|sliderDidDestroy|resetNodes|forceLoopNum|kenburnsrotation|shouldBeDestroyed|sequences|kenburnsrotate|customTransitions|kenburnsscale|contain|timing3|timing1|onkeydown|slideIndexes|sliderDidLoad|fixed|globalBGRepeat|getComputedStyle|timelineHierarchy|nextSlideIndex|slideTimelineDidComplete|reversed|ontouchmove|normalizedSequence|slideTimelineDidCreate|slideChangeWillStart|parallaxtype|globalBGAttachment|parallaxevent|screen|slideTimelineDidUpdate|parallaxaxis|shouldReplay|getSliderClosestParentElementWidthNumericValueOfProperty||which|parentNode|transitioninandloopend|textinandloopend|slideTimelineDidReverseComplete|globalBGSize|touch|restart|keyboard|linkTo|slideTimelineDidStart|resetStates|parallaxtransformorigin|hero|smart|wmode|opaque|loading|sliderDidResize|resetSlideTimelines|videoThumbnailURL|docHeight|touchend|slidertop|setBasicEvents|sliderbottom|parallaxdurationmove|alloutend|globalBGPosition|parallaxdurationleave|releaseDate|touchstart|autoRemoveChildren|javascript|parallaxrotate|sliderWillResize|brightness|contrast|grayscale|linkedToSlide|parallaxrotation|invert|saturate|sepia|parallaxdistance|nexttile|curtile|checkPosition|parallaxtransformperspective|imageLayer|scroll2|setVolume|keybNav|waitForWrap|keyframe|parallaxWrapperData|events|touchX|addLayer|touchNav|hoverPrevNext||preserve|showBarTimer||mirror||file|showCircleTimer|showSlideBarTimer|deltaY|half|hider|onwheel||timer|DOMMouseScroll|iPad|notification||addEvent|parents|iPod|lswpVersion|strong|currentTime|volumeIsSet|autoPlayVideos|iPhone|videopreview|youtubePreview|wpVersion|removeSlider|front|0px|resizeShadow|issue|btmMod|depth|large|library|oldjquery|horizontal|It|reverseDuration|fadeInDuration|you|4e3|parallaxScrollReverse|looks|yourLogoStyle|preventSliderClip|createStartStop|createSides|above|10px|allowFullscreen|like|absolute|yourLogoTarget|success|oldProperties|optimizeForMobile||preloadedWidth|preloadedHeight|sides|05|layersOut|lastIndexOf|linear|hideUnder|layersContainerHeight|stylesheet|layersIn|insertMethod|clearEvents|clearTimelines|rel|createStyleSheet|clearTimers||removeShadow|slideshowDidResume|texteasein|600|touchscroll|sideright|sideleft|outline|textDecoration|bock|yourlogo|remainingSlideDuration|playvideo|ended|insertAfter|finish|thumbnail_large|getJSON|callback|json|v2|player_id|Froogaloop|froogaloop2|vimeocdn|pauseVideo|onStateChange|onReady|Player|onYouTubeIframeAPIReady|progressbar|iframe_api|mousedown|www|mouseup|embed|vi|enablejsapi|indicator|400|errors|dequeue|keydown||isAnimating|isPreloading|forceStop|setdir|changedByUser|invalidSlideIndex|merge|nextLoop|empty|3e3|101|SplitType|forever|slidein|splitType2|splitType1|chars|splitType3b|splitType3a|prop4|prop2|prop1|map|apply|gif|base64|R0lGODlhAQABAIAAAAAAAP|yH5BAEAAAAALAAAAAABAAEAAAIBRAA7|converted|dataLS|spacing|letter|size|font|borderBottomLeftRadius|borderBottomRightRadius|borderTopRightRadius|borderTopLeftRadius|webkitFilter|360|640|fail|getBoundingClientRect|loopWrapperData|clipWrapperData|pointer|clicked|Quint|pagebottom|pagetop|scrollHeight|removeAttribute|setAttribute|continue|nothumb|textInNodesToCSS|infinite|slideIn|lines_edge|lines_center|lines_rand||lines_desc|lines_asc|words_edge|inherit|words_center|words_rand||words_desc||words_asc|chars_edge|chars_center|item|chars_rand|chars_desc|chars_asc|hovertransformperspective||looptransformperspective|texttransformperspectiveout|texttransformperspectivein||texttransformperspective|transformperspectiveout|transformperspectivein|transformperspective|disbaled|parallaxlevel|hovertransformorigin|hoverradius|hoverborderradius|hoverfilter|hoveroffsety|noSlideTransition|hoveroffsetx|hoveralwaysontop|hoverdurationout|hoverdurationin|hoverduration|hovereasingout|0deg|hovereaseout|hovereasingin|hovereasein|hovereasing|hoverease|hovercolor|hoverbgcolor|hoverskewy|01|hoverskewx|hoverscaley|hoverscalex|hoverscale|hoverrotationy|hoverrotationx|hoverrotation|hoverrotatey|leaveOverflow|hoverrotatex|hoverrotate||hoveropacity|obj|loopeasing|loopease|loopyoyo|looprepeatdelay|loopcount|loopduration|loopstartat|specified|customTransition|loopdelay|loopclip|loopfilter|loopoffsety|loopoffsetx|looptransformorigin||loopskewy|loopskewx|loopscaley|loopscalex|loopscale|looprotationy|looprotationx|looprotation|looprotatey|looprotatex|carousel|crossfad|looprotate|curtiles|loopopacity|nexttiles|texttransitionout|textdurationout|textoutstartat|textstartatout|textdelayout|textshiftout|texttypeout|textoffsetyout|textoffsetxout|texttransformoriginout|texteasingout|texteaseout|textskewyout|textskewxout|vertical|textscaleyout|textscalexout|textscaleout|textrotationyout|textrotationxout|textrotationout|textrotateyout|textrotatexout|textrotateout|textopacityout|textfadeout|transitionout||easingout|durationout|outstartat|startatout|showuntil|clipout|offsetyout|offsetxout|transformoriginout|mixed|filterout|heightout|widthout||translate3d|radiusout|colorout||bgcolorout|skewyout|getTweensOf|seek|skewxout|scaleyout|scalexout|scaleout|rotationyout|rotationxout|rotationout|rotateyout|rotatexout|rotateout|opacityout|fadeout|texttransitionin|textdurationin|layersOnSlideTimeline|slideTimelineDuration|textinstartat|textstartatin|textdelayin|textshiftin|texttypein|textoffsetyin|textoffsetxin|timing2|Quad|texttransformoriginin|Sine|texteasingin|below|textskewyin|textskewxin|textscaleyin|addPause|textscalexin|looplayers|addCallback|textscalein|textrotationyin|textrotationxin|textrotationin|textrotateyin|textrotatexin|textrotatein|textopacityin||textfadein|transitionin|easingin|_reversed|onReverseCompleteParams|durationin|999999px||instartat|startatin|delayin||clipin|offsetyin|offsetxin|transformoriginin|skewy|skewx|scaley|scalex|deviceorientation|rotationy|rotationx|rotatey|rotatex|filterin|heightin|orientation|widthin|radiusin|colorin|bgcolorin|skewyin|skewxin|pageY|scaleyin|scalexin|desc|scalein|rand|sort|edge|char|word|rotationyin|rotationxin|rotationin|rotateyin|rotatexin|rotatein|opacityin|fadein|Cannot|mirrortransitions|include|filterto|manually|filterfrom|bgcolor|missing|backgroundcolor|bgposition|added|but|source|found|backgroundposition|ajax|dataType|Additional|complete|bgsize|backgroundsize|transitionduration|timeshift|Required|have|slidedelay|UID||staticImage|outerHTML|_self|jpg|maxresdefault|Find|updates|docs|clientWidth|clientHeight|noWidth|noWidth2|noHeight|noHeight2|v6|conWidth2|conHeight2|350|fullwidth2|fullsize2|conHeight|fix|_LS|sliderInitOptions|bgCover|defaultInitOptions|LS|fitvidsignore|backgrounds|strict|prototype|backgroundRepeat|backgroundAttachment|Number|insertBefore|logo|layerCustomSliderTransitions|slideTransitions|noSlideTransitions|wheel|clientY|here|clicking|updating|about|pre|inviewport|more|read|can|You|entry|wordpress|Left|Top|sliderleft|sliderright|slidercenter|slidermiddle|middle|swing|faq|support|Updater|easeInOutQuart|false|NaN|firstLayer|loops|layersContainer|sublayerContainer|randomSlideshow|Important|higher|newer|least|killTweensOf|requires|old|using|Old|Settings|Advanced|Troubleshooting|Android|BlackBerry|BB10|webOS|Windows|Phone|mobi|opera|mini|nexus|DeviceOrientationEvent|within|option|preventdefault|includes|JS|Put|main|area|returnValue|keyCode|admin|navigate|sliders|problems|causing|fullscreenEnabled|webkitFullscreenEnabled|mozFullscreenEnabled|msFullscreenEnabled|webkitRequestFullscreen|mozRequestFullscreen|msRequestFullscreen|webkitExitFullscreen|mozCancelFullScreen|msExitFullscreen|fullscreenchange|webkitfullscreenchange|mozfullscreenchange|msfullscreenchange|dblclick|fullscreenElement|webkitFullscreenElement|mozFullscreenElement|msFullscreenElement|copy|docWidth|pageYOffset|_data|previousSlide|startSlideshow|updateLayerData|redrawSlider|redraw|replaySlide|reverseSlide|stopSlideshow|pauseSlider|resumeSlider|001|toggleSlider|removeData|extra|loads|theme|userData|another|that|slideChangeTimeline|Safari|Opera|Chrome|Edge|perspective|OPerspective|msPerspective|MozPerspective|WebkitPerspective|transformStyle|OTransformStyle|msTransformStyle|MozTransformStyle|WebkitTransformStyle|Multiple|test3d||offsetHeight|rident|2017|02|03'.split('|'),0,{})); // source --> //netsu.com.br/wp-content/plugins/LayerSlider/static/layerslider/js/layerslider.transitions.js?ver=6.1.6 /* * 2D & 3D Transitions for LayerSlider * * (c) 2011-2017 George Krupa, John Gera & Kreatura Media * * Plugin web: https://layerslider.kreaturamedia.com/ * Licenses: http://codecanyon.net/licenses/ */ ;eval(function(p,a,c,k,e,r){e=function(c){return(c35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c);k=[function(e){return r[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('2b 22={2a:[{i:\'Z M G\',d:1,g:1,f:{e:0,j:\'n\'},c:{o:\'V\',b:\'1f\',a:F,h:\'t\'}},{i:\'Z M t\',d:1,g:1,f:{e:0,j:\'n\'},c:{o:\'V\',b:\'1f\',a:F,h:\'G\'}},{i:\'Z M L\',d:1,g:1,f:{e:0,j:\'n\'},c:{o:\'V\',b:\'1f\',a:F,h:\'K\'}},{i:\'Z M K\',d:1,g:1,f:{e:0,j:\'n\'},c:{o:\'V\',b:\'1f\',a:F,h:\'L\'}},{i:\'29\',d:1,g:1,f:{e:0,j:\'n\'},c:{o:\'13\',b:\'1f\',a:F,h:\'t\'}},{i:\'Y P n\',d:[2,4],g:[4,7],f:{e:1j,j:\'n\'},c:{o:\'13\',b:\'y\',a:F,h:\'t\'}},{i:\'Y P D\',d:[2,4],g:[4,7],f:{e:1j,j:\'D\'},c:{o:\'13\',b:\'y\',a:F,h:\'t\'}},{i:\'Y P 1i-n\',d:[2,4],g:[4,7],f:{e:1j,j:\'1i-n\'},c:{o:\'13\',b:\'y\',a:F,h:\'t\'}},{i:\'Y P 1i-D\',d:[2,4],g:[4,7],f:{e:1j,j:\'1i-D\'},c:{o:\'13\',b:\'y\',a:F,h:\'t\'}},{i:\'Y P (k)\',d:[2,4],g:[4,7],f:{e:1j,j:\'k\'},c:{o:\'13\',b:\'y\',a:F,h:\'t\'}},{i:\'1x 1z M G\',d:1,g:1u,f:{e:25,j:\'D\'},c:{o:\'13\',b:\'28\',a:U,h:\'t\'}},{i:\'1x 1z M t\',d:1,g:1u,f:{e:25,j:\'n\'},c:{o:\'13\',b:\'u\',a:U,h:\'t\'}},{i:\'1x 1z M L\',d:1u,g:1,f:{e:25,j:\'1i-D\'},c:{o:\'13\',b:\'u\',a:U,h:\'t\'}},{i:\'1x 1z M K\',d:1u,g:1,f:{e:25,j:\'1i-n\'},c:{o:\'13\',b:\'u\',a:U,h:\'t\'}},{i:\'1x X M G\',d:1,g:25,f:{e:1j,j:\'D\'},c:{o:\'V\',b:\'u\',a:1e,h:\'t\'}},{i:\'1x X M t\',d:1,g:25,f:{e:1j,j:\'n\'},c:{o:\'V\',b:\'u\',a:1e,h:\'G\'}},{i:\'1x 27 M L\',d:25,g:1,f:{e:1j,j:\'1i-D\'},c:{o:\'V\',b:\'u\',a:1e,h:\'K\'}},{i:\'1x X M K\',d:25,g:1,f:{e:1j,j:\'1i-n\'},c:{o:\'V\',b:\'u\',a:1e,h:\'L\'}},{i:\'Z P m G (k)\',d:[2,4],g:[4,7],f:{e:1c,j:\'k\'},c:{o:\'V\',b:\'y\',a:1l,h:\'G\'}},{i:\'Z P m t (k)\',d:[2,4],g:[4,7],f:{e:1c,j:\'k\'},c:{o:\'V\',b:\'y\',a:1l,h:\'t\'}},{i:\'Z P m L (k)\',d:[2,4],g:[4,7],f:{e:1c,j:\'k\'},c:{o:\'V\',b:\'y\',a:1l,h:\'L\'}},{i:\'Z P m K (k)\',d:[2,4],g:[4,7],f:{e:1c,j:\'k\'},c:{o:\'V\',b:\'y\',a:1l,h:\'K\'}},{i:\'Z k P m k 1R\',d:[2,4],g:[4,7],f:{e:1c,j:\'k\'},c:{o:\'V\',b:\'y\',a:1l,h:\'k\'}},{i:\'Z d m G (n)\',d:[7,11],g:1,f:{e:1a,j:\'n\'},c:{o:\'V\',b:\'u\',a:p,h:\'G\'}},{i:\'Z d m G (D)\',d:[7,11],g:1,f:{e:1a,j:\'D\'},c:{o:\'V\',b:\'u\',a:p,h:\'G\'}},{i:\'Z d m G (k)\',d:[7,11],g:1,f:{e:1a,j:\'k\'},c:{o:\'V\',b:\'u\',a:p,h:\'G\'}},{i:\'Z d m t (n)\',d:[7,11],g:1,f:{e:1a,j:\'n\'},c:{o:\'V\',b:\'u\',a:p,h:\'t\'}},{i:\'Z d m t (D)\',d:[7,11],g:1,f:{e:1a,j:\'D\'},c:{o:\'V\',b:\'u\',a:p,h:\'t\'}},{i:\'Z d m t (k)\',d:[7,11],g:1,f:{e:1a,j:\'k\'},c:{o:\'V\',b:\'u\',a:p,h:\'t\'}},{i:\'Z d M K m L (n)\',d:[7,11],g:1,f:{e:1a,j:\'n\'},c:{o:\'V\',b:\'u\',a:p,h:\'L\'}},{i:\'Z d M K m L (k)\',d:[7,11],g:1,f:{e:1a,j:\'k\'},c:{o:\'V\',b:\'u\',a:p,h:\'L\'}},{i:\'Z d M L m K (D)\',d:[7,11],g:1,f:{e:1a,j:\'D\'},c:{o:\'V\',b:\'u\',a:p,h:\'K\'}},{i:\'Z d M L m K (k)\',d:[7,11],g:1,f:{e:1a,j:\'k\'},c:{o:\'V\',b:\'u\',a:p,h:\'K\'}},{i:\'Z O m L (n)\',d:1,g:[12,16],f:{e:q,j:\'n\'},c:{o:\'V\',b:\'u\',a:p,h:\'L\'}},{i:\'Z O m L (D)\',d:1,g:[12,16],f:{e:q,j:\'D\'},c:{o:\'V\',b:\'u\',a:p,h:\'L\'}},{i:\'Z O m L (k)\',d:1,g:[12,16],f:{e:q,j:\'k\'},c:{o:\'V\',b:\'u\',a:p,h:\'L\'}},{i:\'Z O m K (n)\',d:1,g:[12,16],f:{e:q,j:\'n\'},c:{o:\'V\',b:\'u\',a:p,h:\'K\'}},{i:\'Z O m K (D)\',d:1,g:[12,16],f:{e:q,j:\'D\'},c:{o:\'V\',b:\'u\',a:p,h:\'K\'}},{i:\'Z O m K (k)\',d:1,g:[12,16],f:{e:q,j:\'k\'},c:{o:\'V\',b:\'u\',a:p,h:\'K\'}},{i:\'Z O M t m G (n)\',d:1,g:[12,16],f:{e:q,j:\'n\'},c:{o:\'V\',b:\'u\',a:p,h:\'G\'}},{i:\'Z O M t m G (k)\',d:1,g:[12,16],f:{e:q,j:\'k\'},c:{o:\'V\',b:\'u\',a:p,h:\'G\'}},{i:\'Z O M G m t (D)\',d:1,g:[12,16],f:{e:q,j:\'D\'},c:{o:\'V\',b:\'u\',a:p,h:\'t\'}},{i:\'Z O M G m t (k)\',d:1,g:[12,16],f:{e:q,j:\'k\'},c:{o:\'V\',b:\'u\',a:p,h:\'t\'}},{i:\'Y s X P m G (k)\',d:[2,4],g:[4,7],f:{e:1c,j:\'k\'},c:{o:\'Q\',b:\'y\',a:1l,h:\'G\'}},{i:\'Y s X P m t (k)\',d:[2,4],g:[4,7],f:{e:1c,j:\'k\'},c:{o:\'Q\',b:\'y\',a:1l,h:\'t\'}},{i:\'Y s X P m L (k)\',d:[2,4],g:[4,7],f:{e:1c,j:\'k\'},c:{o:\'Q\',b:\'y\',a:1l,h:\'L\'}},{i:\'Y s X P m K (k)\',d:[2,4],g:[4,7],f:{e:1c,j:\'k\'},c:{o:\'Q\',b:\'y\',a:1l,h:\'K\'}},{i:\'Y s X k P m k 1R\',d:[2,4],g:[4,7],f:{e:1c,j:\'k\'},c:{o:\'Q\',b:\'y\',a:1l,h:\'k\'}},{i:\'Y s X P M K-t (n)\',d:[2,4],g:[4,7],f:{e:1c,j:\'n\'},c:{o:\'Q\',b:\'y\',a:1l,h:\'26\'}},{i:\'Y s X P M L-G (D)\',d:[2,4],g:[4,7],f:{e:1c,j:\'D\'},c:{o:\'Q\',b:\'y\',a:1l,h:\'1Y\'}},{i:\'Y s X P M K-G (k)\',d:[2,4],g:[4,7],f:{e:1c,j:\'k\'},c:{o:\'Q\',b:\'y\',a:1l,h:\'1W\'}},{i:\'Y s X P M L-t (k)\',d:[2,4],g:[4,7],f:{e:1c,j:\'k\'},c:{o:\'Q\',b:\'y\',a:1l,h:\'23\'}},{i:\'Y s X d m G (n)\',d:[7,11],g:1,f:{e:1a,j:\'n\'},c:{o:\'Q\',b:\'u\',a:p,h:\'G\'}},{i:\'Y s X d m G (D)\',d:[7,11],g:1,f:{e:1a,j:\'D\'},c:{o:\'Q\',b:\'u\',a:p,h:\'G\'}},{i:\'Y s X d m G (k)\',d:[7,11],g:1,f:{e:1a,j:\'k\'},c:{o:\'Q\',b:\'u\',a:p,h:\'G\'}},{i:\'Y s X d m t (n)\',d:[7,11],g:1,f:{e:1a,j:\'n\'},c:{o:\'Q\',b:\'u\',a:p,h:\'t\'}},{i:\'Y s X d m t (D)\',d:[7,11],g:1,f:{e:1a,j:\'D\'},c:{o:\'Q\',b:\'u\',a:p,h:\'t\'}},{i:\'Y s X d m t (k)\',d:[7,11],g:1,f:{e:1a,j:\'k\'},c:{o:\'Q\',b:\'u\',a:p,h:\'t\'}},{i:\'Y s X d M K m L (n)\',d:[7,11],g:1,f:{e:1a,j:\'n\'},c:{o:\'Q\',b:\'u\',a:p,h:\'L\'}},{i:\'Y s X d M K m L (k)\',d:[7,11],g:1,f:{e:1a,j:\'k\'},c:{o:\'Q\',b:\'u\',a:p,h:\'L\'}},{i:\'Y s X d M L m K (D)\',d:[7,11],g:1,f:{e:1a,j:\'D\'},c:{o:\'Q\',b:\'u\',a:p,h:\'K\'}},{i:\'Y s X d M L m K (k)\',d:[7,11],g:1,f:{e:1a,j:\'k\'},c:{o:\'Q\',b:\'u\',a:p,h:\'K\'}},{i:\'Y s X O m L (n)\',d:1,g:[12,16],f:{e:q,j:\'n\'},c:{o:\'Q\',b:\'u\',a:p,h:\'L\'}},{i:\'Y s X O m L (D)\',d:1,g:[12,16],f:{e:q,j:\'D\'},c:{o:\'Q\',b:\'u\',a:p,h:\'L\'}},{i:\'Y s X O m L (k)\',d:1,g:[12,16],f:{e:q,j:\'k\'},c:{o:\'Q\',b:\'u\',a:p,h:\'L\'}},{i:\'Y s X O m K (n)\',d:1,g:[12,16],f:{e:q,j:\'n\'},c:{o:\'Q\',b:\'u\',a:p,h:\'K\'}},{i:\'Y s X O m K (D)\',d:1,g:[12,16],f:{e:q,j:\'D\'},c:{o:\'Q\',b:\'u\',a:p,h:\'K\'}},{i:\'Y s X O m K (k)\',d:1,g:[12,16],f:{e:q,j:\'k\'},c:{o:\'Q\',b:\'u\',a:p,h:\'K\'}},{i:\'Y s X O M t m G (n)\',d:1,g:[12,16],f:{e:q,j:\'n\'},c:{o:\'Q\',b:\'u\',a:p,h:\'G\'}},{i:\'Y s X O M t m G (k)\',d:1,g:[12,16],f:{e:q,j:\'k\'},c:{o:\'Q\',b:\'u\',a:p,h:\'G\'}},{i:\'Y s X O M G m t (D)\',d:1,g:[12,16],f:{e:q,j:\'D\'},c:{o:\'Q\',b:\'u\',a:p,h:\'t\'}},{i:\'Y s X O M G m t (k)\',d:1,g:[12,16],f:{e:q,j:\'k\'},c:{o:\'Q\',b:\'u\',a:p,h:\'t\'}},{i:\'1v\',d:1,g:1,f:{e:0,j:\'n\'},c:{o:\'Q\',b:\'1f\',a:U,h:\'t\',1g:0.5}},{i:\'1v d\',d:4,g:1,f:{e:1c,j:\'n\'},c:{o:\'Q\',b:\'1f\',a:U,h:\'t\',1g:0.5}},{i:\'1v g\',d:1,g:4,f:{e:1c,j:\'n\'},c:{o:\'Q\',b:\'1f\',a:U,h:\'t\',1g:0.5}},{i:\'1v P z\',d:3,g:4,f:{e:1u,j:\'n\'},c:{o:\'Q\',b:\'1f\',a:U,h:\'t\',1g:0.5,x:v}},{i:\'1v P C\',d:3,g:4,f:{e:1u,j:\'n\'},c:{o:\'Q\',b:\'1f\',a:U,h:\'K\',1g:0.5,w:-v}},{i:\'1v-1H P z\',d:3,g:4,f:{e:15,j:\'n\'},c:{o:\'Q\',b:\'1f\',a:U,h:\'t\',1g:0.5,x:v}},{i:\'1v-1H P C\',d:3,g:4,f:{e:15,j:\'n\'},c:{o:\'Q\',b:\'1f\',a:U,h:\'K\',1g:0.5,w:-v}},{i:\'1v 1H d\',d:4,g:1,f:{e:1c,j:\'n\'},c:{o:\'Q\',b:\'1f\',a:U,h:\'G\',1g:0.5}},{i:\'1v 1H g\',d:1,g:4,f:{e:1c,j:\'n\'},c:{o:\'Q\',b:\'1f\',a:U,h:\'t\',1g:0.5}},{i:\'1d f M t\',d:1,g:1,f:{e:0,j:\'n\'},c:{o:\'V\',b:\'y\',a:U,h:\'G\',x:v}},{i:\'1d f M G\',d:1,g:1,f:{e:0,j:\'n\'},c:{o:\'V\',b:\'y\',a:U,h:\'t\',x:-v}},{i:\'1d f M K\',d:1,g:1,f:{e:0,j:\'n\'},c:{o:\'V\',b:\'y\',a:U,h:\'L\',w:-v}},{i:\'1d f M L\',d:1,g:1,f:{e:0,j:\'n\'},c:{o:\'V\',b:\'y\',a:U,h:\'K\',w:v}},{i:\'1d P M t\',d:[3,4],g:[3,4],f:{e:19,j:\'n\'},c:{o:\'13\',b:\'y\',a:U,h:\'t\',x:v}},{i:\'1d P M G\',d:[3,4],g:[3,4],f:{e:19,j:\'D\'},c:{o:\'13\',b:\'y\',a:U,h:\'t\',x:-v}},{i:\'1d P M K\',d:[3,4],g:[3,4],f:{e:19,j:\'n\'},c:{o:\'13\',b:\'y\',a:U,h:\'t\',w:-v}},{i:\'1d P M L\',d:[3,4],g:[3,4],f:{e:19,j:\'D\'},c:{o:\'13\',b:\'y\',a:U,h:\'t\',w:v}},{i:\'1d d M K\',d:[6,12],g:1,f:{e:19,j:\'n\'},c:{o:\'13\',b:\'y\',a:U,h:\'t\',w:v}},{i:\'1d d M L\',d:[6,12],g:1,f:{e:19,j:\'D\'},c:{o:\'13\',b:\'y\',a:U,h:\'t\',w:-v}},{i:\'1d g M t\',d:1,g:[6,12],f:{e:19,j:\'n\'},c:{o:\'13\',b:\'y\',a:U,h:\'t\',x:-v}},{i:\'1d g M G\',d:1,g:[6,12],f:{e:19,j:\'D\'},c:{o:\'13\',b:\'y\',a:U,h:\'t\',x:v}},{i:\'1w d M t\',d:[3,10],g:1,f:{e:19,j:\'n\'},c:{o:\'13\',b:\'y\',a:U,h:\'t\',x:v}},{i:\'1w d M G\',d:[3,10],g:1,f:{e:19,j:\'D\'},c:{o:\'13\',b:\'y\',a:U,h:\'t\',x:-v}},{i:\'1w g M K\',d:1,g:[3,10],f:{e:19,j:\'n\'},c:{o:\'13\',b:\'y\',a:U,h:\'t\',w:-v}},{i:\'1w g M L\',d:1,g:[3,10],f:{e:19,j:\'D\'},c:{o:\'13\',b:\'y\',a:U,h:\'t\',w:v}},{i:\'1w s 1q f M t\',d:1,g:1,f:{e:q,j:\'n\'},c:{o:\'Q\',b:\'y\',a:U,h:\'G\',1g:0.1,1s:-v,x:v}},{i:\'1w s 1q f M G\',d:1,g:1,f:{e:q,j:\'n\'},c:{o:\'Q\',b:\'y\',a:U,h:\'t\',1g:0.1,1s:v,x:-v}},{i:\'1w s 1q P M t\',d:[3,4],g:[3,4],f:{e:19,j:\'n\'},c:{o:\'Q\',b:\'y\',a:U,h:\'G\',1s:-1r}},{i:\'1w s 1q P M G\',d:[3,4],g:[3,4],f:{e:19,j:\'n\'},c:{o:\'Q\',b:\'y\',a:U,h:\'t\',1s:-1r}},{i:\'1w s 1q P M k\',d:[3,4],g:[3,4],f:{e:19,j:\'k\'},c:{o:\'Q\',b:\'y\',a:U,h:\'k\',1s:-1r}},{i:\'E f 1Q\',d:1,g:1,f:{e:0,j:\'n\'},c:{o:\'13\',b:\'y\',a:18,h:\'t\',1g:0.8}},{i:\'E f M 1L\',d:1,g:1,f:{e:0,j:\'n\'},c:{o:\'13\',b:\'u\',a:18,h:\'t\',1g:1.2}},{i:\'E P k\',d:[3,4],g:[3,4],f:{e:1u,j:\'k\'},c:{o:\'13\',b:\'y\',a:U,h:\'t\',1g:0.1}},{i:\'E P M 1L k\',d:[3,4],g:[3,4],f:{e:1u,j:\'k\'},c:{o:\'13\',b:\'y\',a:U,h:\'t\',1g:2}},{i:\'E 1Q s 1q P k\',d:[3,4],g:[3,4],f:{e:1u,j:\'k\'},c:{o:\'13\',b:\'y\',a:U,h:\'t\',1g:0.1,1s:v}},{i:\'E s 1q P M 1L k\',d:[3,4],g:[3,4],f:{e:1u,j:\'k\'},c:{o:\'13\',b:\'y\',a:U,h:\'t\',1g:2,1s:-v}},{i:\'1F-X P 21\',d:3,g:4,f:{e:15,j:\'n\'},c:{o:\'V\',b:\'u\',a:24,h:\'1W\'}},{i:\'1F-X d z\',d:6,g:1,f:{e:0,j:\'n\'},c:{o:\'Q\',b:\'y\',a:U,h:\'t\'}},{i:\'1F-X d C\',d:6,g:1,f:{e:0,j:\'n\'},c:{o:\'Q\',b:\'y\',a:U,h:\'K\'}},{i:\'1F-X g z\',d:1,g:8,f:{e:0,j:\'n\'},c:{o:\'Q\',b:\'y\',a:U,h:\'t\'}},{i:\'1F-X g C\',d:1,g:8,f:{e:0,j:\'n\'},c:{o:\'Q\',b:\'y\',a:U,h:\'K\'}}],1Z:[{i:\'1b f m G (l°)\',d:1,g:1,f:{e:q,j:\'n\'},r:{c:{x:1J},b:\'1A\',a:F,h:\'z\'},A:{c:{x:l},b:\'y\',a:F,h:\'z\'}},{i:\'1b f m t (l°)\',d:1,g:1,f:{e:q,j:\'n\'},r:{c:{x:-1J},b:\'1A\',a:F,h:\'z\'},A:{c:{x:-l},b:\'y\',a:F,h:\'z\'}},{i:\'1b f m L (l°)\',d:1,g:1,f:{e:q,j:\'n\'},r:{c:{w:-1J},b:\'1A\',a:1y,h:\'C\'},A:{c:{w:-l},b:\'y\',a:1y,h:\'C\'}},{i:\'1b f m K (l°)\',d:1,g:1,f:{e:q,j:\'n\'},r:{c:{w:1J},b:\'1A\',a:1y,h:\'C\'},A:{c:{w:l},b:\'y\',a:1y,h:\'C\'}},{i:\'1b P m G (l°)\',d:[2,4],g:[4,7],f:{e:q,j:\'n\'},r:{c:{x:l},b:\'u\',a:F,h:\'z\'}},{i:\'1b P m t (l°)\',d:[2,4],g:[4,7],f:{e:q,j:\'D\'},r:{c:{x:-l},b:\'u\',a:F,h:\'z\'}},{i:\'1b P m L (l°)\',d:[2,4],g:[4,7],f:{e:q,j:\'1i-n\'},r:{c:{w:-l},b:\'u\',a:F,h:\'C\'}},{i:\'1b P m K (l°)\',d:[2,4],g:[4,7],f:{e:q,j:\'1i-D\'},r:{c:{w:l},b:\'u\',a:F,h:\'C\'}},{i:\'1G S P k (l°)\',d:[2,4],g:[4,7],f:{e:q,j:\'k\'},r:{c:{x:l},b:\'u\',a:1K,h:\'z\'}},{i:\'1E S P k (l°)\',d:[2,4],g:[4,7],f:{e:q,j:\'k\'},r:{c:{w:l},b:\'u\',a:1K,h:\'C\'}},{i:\'E s S P m G (l°)\',d:[2,4],g:[4,7],f:{e:q,j:\'n\'},I:{c:{B:0.1D},a:1n,b:\'14\'},r:{c:{x:l},b:\'H\',a:F,h:\'z\'},A:{a:1e,b:\'H\'}},{i:\'E s S P m t (l°)\',d:[2,4],g:[4,7],f:{e:q,j:\'D\'},I:{c:{B:0.1D},a:1n,b:\'14\'},r:{c:{x:-l},b:\'H\',a:F,h:\'z\'},A:{a:1e,b:\'H\'}},{i:\'E s S P m L (l°)\',d:[2,4],g:[4,7],f:{e:q,j:\'1i-n\'},I:{c:{B:0.1D},a:1n,b:\'14\'},r:{c:{w:-l},b:\'H\',a:F,h:\'C\'},A:{a:1e,b:\'H\'}},{i:\'E s S P m K (l°)\',d:[2,4],g:[4,7],f:{e:q,j:\'1i-D\'},I:{c:{B:0.1D},a:1n,b:\'14\'},r:{c:{w:l},b:\'H\',a:F,h:\'C\'},A:{a:1e,b:\'H\'}},{i:\'E s z S P k (l°)\',d:[2,4],g:[4,7],f:{e:q,j:\'k\'},I:{c:{B:0.1D,w:1j},a:1n,b:\'14\'},r:{c:{x:l,w:-1j},b:\'H\',a:1K,h:\'z\'},A:{c:{w:0},a:1e,b:\'H\'}},{i:\'E s C S P k (l°)\',d:[2,4],g:[4,7],f:{e:q,j:\'k\'},I:{c:{B:0.1D,x:-15},a:1n,b:\'14\'},r:{c:{w:l,x:15},b:\'H\',a:1K,h:\'C\'},A:{c:{x:0},a:1e,b:\'H\'}},{i:\'1b d m G (l°)\',d:[5,9],g:1,f:{e:q,j:\'n\'},r:{c:{x:l},b:\'u\',a:18,h:\'z\'}},{i:\'1b d m t (l°)\',d:[5,9],g:1,f:{e:q,j:\'n\'},r:{c:{x:-l},b:\'u\',a:18,h:\'z\'}},{i:\'1b d m L (l°)\',d:[5,9],g:1,f:{e:q,j:\'n\'},r:{c:{w:-l},b:\'u\',a:F,h:\'C\'}},{i:\'1b d m K (l°)\',d:[5,9],g:1,f:{e:q,j:\'D\'},r:{c:{w:l},b:\'u\',a:F,h:\'C\'}},{i:\'1G S d k (l°)\',d:[5,9],g:1,f:{e:q,j:\'k\'},r:{c:{x:l},b:\'u\',a:18,h:\'z\'}},{i:\'1E S d k (l°)\',d:[5,9],g:1,f:{e:q,j:\'k\'},r:{c:{w:-l},b:\'u\',a:18,h:\'C\'}},{i:\'1E S d k (1C°)\',d:[3,7],g:1,f:{e:1N,j:\'k\'},r:{c:{w:-1C},b:\'u\',a:1O,h:\'C\'}},{i:\'E s S d m G (l°)\',d:[5,9],g:1,f:{e:19,j:\'n\'},I:{c:{B:0.N},a:p,b:\'J\'},r:{c:{x:l},b:\'H\',a:1m,h:\'z\'},A:{c:{e:W},b:\'J\',a:p}},{i:\'E s S d m t (l°)\',d:[5,9],g:1,f:{e:19,j:\'D\'},I:{c:{B:0.N},a:p,b:\'J\'},r:{c:{x:-l},b:\'H\',a:1m,h:\'z\'},A:{c:{e:W},b:\'J\',a:p}},{i:\'E s S d m L (l°)\',d:[5,9],g:1,f:{e:19,j:\'n\'},I:{c:{B:0.N},a:p,b:\'J\'},r:{c:{w:-l},b:\'u\',a:p,h:\'C\'},A:{c:{e:W},b:\'J\',a:p}},{i:\'E s S d m K (l°)\',d:[5,9],g:1,f:{e:19,j:\'D\'},I:{c:{B:0.N},a:p,b:\'J\'},r:{c:{w:l},b:\'u\',a:p,h:\'C\'},A:{c:{e:W},b:\'J\',a:p}},{i:\'E s z S d k (l°)\',d:[5,9],g:1,f:{e:19,j:\'k\'},I:{c:{B:0.N},a:p,b:\'J\'},r:{c:{x:l},b:\'H\',a:1m,h:\'z\'},A:{c:{e:W},b:\'J\',a:p}},{i:\'E s C S d k (l°)\',d:[5,9],g:1,f:{e:19,j:\'k\'},I:{c:{B:0.N},a:p,b:\'J\'},r:{c:{w:-l},b:\'H\',a:p,h:\'C\'},A:{c:{e:W},b:\'J\',a:p}},{i:\'1b O m G (l°)\',d:1,g:[5,9],f:{e:q,j:\'n\'},r:{c:{x:l},b:\'u\',a:18,h:\'z\'}},{i:\'1b O m t (l°)\',d:1,g:[5,9],f:{e:q,j:\'n\'},r:{c:{x:-l},b:\'u\',a:18,h:\'z\'}},{i:\'1b O m L (l°)\',d:1,g:[5,9],f:{e:q,j:\'n\'},r:{c:{w:-l},b:\'u\',a:F,h:\'C\'}},{i:\'1b O m K (l°)\',d:1,g:[5,9],f:{e:q,j:\'D\'},r:{c:{w:l},b:\'u\',a:F,h:\'C\'}},{i:\'1G S O k (l°)\',d:1,g:[5,9],f:{e:q,j:\'k\'},r:{c:{x:l},b:\'u\',a:18,h:\'z\'}},{i:\'1E S O k (l°)\',d:1,g:[5,9],f:{e:q,j:\'k\'},r:{c:{w:-l},b:\'u\',a:18,h:\'C\'}},{i:\'1G S O k (1C°)\',d:1,g:[4,9],f:{e:1N,j:\'k\'},r:{c:{x:1C},b:\'u\',a:1O,h:\'z\'}},{i:\'E s S O m G (l°)\',d:1,g:[7,11],f:{e:19,j:\'n\'},I:{c:{B:0.N},a:p,b:\'J\'},r:{c:{x:l},b:\'u\',a:p,h:\'z\'},A:{c:{e:W},b:\'J\',a:p}},{i:\'E s S O m t (l°)\',d:1,g:[7,11],f:{e:19,j:\'D\'},I:{c:{B:0.N},a:p,b:\'J\'},r:{c:{x:-l},b:\'u\',a:p,h:\'z\'},A:{c:{e:W},b:\'J\',a:p}},{i:\'E s S O m L (l°)\',d:1,g:[7,11],f:{e:19,j:\'n\'},I:{c:{B:0.N},a:p,b:\'J\'},r:{c:{w:-l},b:\'H\',a:1m,h:\'C\'},A:{c:{e:W},b:\'J\',a:p}},{i:\'E s S O m K (l°)\',d:1,g:[7,11],f:{e:q,j:\'D\'},I:{c:{B:0.N},a:p,b:\'J\'},r:{c:{w:l},b:\'H\',a:1m,h:\'C\'},A:{c:{e:W},b:\'J\',a:p}},{i:\'E s z S O k (l°)\',d:1,g:[7,11],f:{e:q,j:\'k\'},I:{c:{B:0.N},a:p,b:\'J\'},r:{c:{x:l},b:\'H\',a:p,h:\'z\'},A:{c:{e:W},b:\'J\',a:p}},{i:\'E s C S O k (l°)\',d:1,g:[7,11],f:{e:q,j:\'k\'},I:{c:{B:0.N},a:p,b:\'J\'},r:{c:{w:-l},b:\'H\',a:1m,h:\'C\'},A:{c:{e:W},b:\'J\',a:p}},{i:\'1T 1U 1V s S m G (l°)\',d:1,g:[7,11],f:{e:q,j:\'n\'},I:{c:{B:0.N,w:-1j},a:p,b:\'y\'},r:{c:{w:-1j,x:l},b:\'u\',a:F,h:\'z\'},A:{c:{w:0,e:W},b:\'y\',a:p}},{i:\'1T 1U 1V s S m t (l°)\',d:1,g:[7,11],f:{e:q,j:\'D\'},I:{c:{B:0.N,w:-1j},a:p,b:\'y\'},r:{c:{w:1j,x:-l},b:\'u\',a:F,h:\'z\'},A:{c:{w:0,e:W},b:\'y\',a:p}},{i:\'1d 1t m G (v°)\',d:1,g:1,f:{e:q,j:\'n\'},r:{c:{x:v},b:\'u\',a:18,h:\'z\'}},{i:\'1d 1t m t (v°)\',d:1,g:1,f:{e:q,j:\'n\'},r:{c:{x:-v},b:\'u\',a:18,h:\'z\'}},{i:\'1d 1t m L (v°)\',d:1,g:1,f:{e:q,j:\'n\'},r:{c:{w:-v},b:\'u\',a:18,h:\'C\'}},{i:\'1d 1t m K (v°)\',d:1,g:1,f:{e:q,j:\'n\'},r:{c:{w:v},b:\'u\',a:18,h:\'C\'}},{i:\'E s 17 1t m G (v°)\',d:1,g:1,f:{e:q,j:\'k\'},r:{c:{B:0.8,1s:7,w:10,x:1r},b:\'1f\',a:1y,h:\'z\'},A:{c:{1s:0,w:0,x:v},a:1y,b:\'1f\'}},{i:\'E s 17 1t m t (v°)\',d:1,g:1,f:{e:q,j:\'k\'},r:{c:{B:0.8,1s:-7,w:10,x:-1r},b:\'1f\',a:1y,h:\'z\'},A:{c:{1s:0,w:0,x:-v},a:1y,b:\'1f\'}},{i:\'E s 17 1k m G (v°)\',d:[2,4],g:[4,7],f:{e:q,j:\'n\'},I:{c:{B:0.N},a:1n,b:\'14\'},r:{c:{x:v},b:\'H\',a:F,h:\'z\'},A:{a:1e,b:\'H\'}},{i:\'E s 17 1k m t (v°)\',d:[2,4],g:[4,7],f:{e:q,j:\'D\'},I:{c:{B:0.N},a:1n,b:\'14\'},r:{c:{x:-v},b:\'H\',a:F,h:\'z\'},A:{a:1e,b:\'H\'}},{i:\'E s 17 1k m L (v°)\',d:[2,4],g:[4,7],f:{e:q,j:\'1i-n\'},I:{c:{B:0.N},a:1n,b:\'14\'},r:{c:{w:-v},b:\'H\',a:F,h:\'C\'},A:{a:1e,b:\'H\'}},{i:\'E s 17 1k m K (v°)\',d:[2,4],g:[4,7],f:{e:q,j:\'1i-D\'},I:{c:{B:0.N},a:1n,b:\'14\'},r:{c:{w:v},b:\'H\',a:F,h:\'C\'},A:{a:1e,b:\'H\'}},{i:\'E s z 17 1k k (v°)\',d:[2,4],g:[4,7],f:{e:q,j:\'k\'},I:{c:{B:0.q,w:-15},a:1p,b:\'14\'},r:{c:{x:q,w:15},b:\'H\',a:1p,h:\'z\'},A:{c:{x:v,w:0},a:1p,b:\'H\'}},{i:\'E s C 17 1k k (v°)\',d:[2,4],g:[4,7],f:{e:q,j:\'k\'},I:{c:{B:0.q,x:15},a:1p,b:\'14\'},r:{c:{w:q,x:-15},b:\'H\',a:1p,h:\'C\'},A:{c:{w:v,x:0},a:1p,b:\'H\'}},{i:\'1d d m G (v°)\',d:[5,9],g:1,f:{e:q,j:\'n\'},r:{c:{x:v},b:\'u\',a:18,h:\'z\'}},{i:\'1d d m t (v°)\',d:[5,9],g:1,f:{e:q,j:\'n\'},r:{c:{x:-v},b:\'u\',a:18,h:\'z\'}},{i:\'1G 17 d k (v°)\',d:[5,9],g:1,f:{e:q,j:\'k\'},r:{c:{x:v},b:\'u\',a:18,h:\'z\'}},{i:\'E s 17 d m G (v°)\',d:[5,9],g:1,f:{e:q,j:\'n\'},I:{c:{B:0.N},a:p,b:\'J\'},r:{c:{x:20},b:\'H\',a:F,h:\'z\'},A:{c:{e:W,x:v},b:\'J\',a:p}},{i:\'E s 17 d m t (v°)\',d:[5,9],g:1,f:{e:q,j:\'D\'},I:{c:{B:0.N},a:p,b:\'J\'},r:{c:{x:-v},b:\'H\',a:F,h:\'z\'},A:{c:{e:W},b:\'J\',a:p}},{i:\'E s 17 d m L (v°)\',d:[5,9],g:1,f:{e:q,j:\'n\'},I:{c:{B:0.N},a:p,b:\'J\'},r:{c:{w:-v},b:\'H\',a:F,h:\'C\'},A:{c:{e:W},b:\'J\',a:p}},{i:\'E s 17 d m K (v°)\',d:[5,9],g:1,f:{e:q,j:\'D\'},I:{c:{B:0.N},a:p,b:\'J\'},r:{c:{w:v},b:\'H\',a:F,h:\'C\'},A:{c:{e:W},b:\'J\',a:p}},{i:\'E s z 17 d k (v°)\',d:[5,9],g:1,f:{e:q,j:\'k\'},I:{c:{B:0.N},a:p,b:\'J\'},r:{c:{x:v},b:\'H\',a:F,h:\'z\'},A:{c:{e:W},b:\'J\',a:p}},{i:\'E s C 17 d k (v°)\',d:[5,9],g:1,f:{e:q,j:\'k\'},I:{c:{B:0.N},a:p,b:\'J\'},r:{c:{w:-v},b:\'H\',a:F,h:\'C\'},A:{c:{e:W},b:\'J\',a:p}},{i:\'E s z 17 1I d m G (v°)\',d:[7,11],g:1,f:{e:q,j:\'n\'},r:{c:{B:0.N,x:1r},b:\'14\',a:F,h:\'z\'},A:{c:{x:v},b:\'14\',a:F}},{i:\'E s z 17 1I d m t (v°)\',d:[7,11],g:1,f:{e:q,j:\'D\'},r:{c:{B:0.N,x:-1r},b:\'14\',a:F,h:\'z\'},A:{c:{x:-v},b:\'14\',a:F}},{i:\'1d O m L (v°)\',d:1,g:[5,9],f:{e:q,j:\'n\'},r:{c:{w:-v},b:\'u\',a:F,h:\'C\'}},{i:\'1d O m K (v°)\',d:1,g:[5,9],f:{e:q,j:\'D\'},r:{c:{w:v},b:\'u\',a:F,h:\'C\'}},{i:\'1E 17 O k (v°)\',d:1,g:[5,9],f:{e:q,j:\'k\'},r:{c:{w:-v},b:\'u\',a:F,h:\'C\'}},{i:\'E s 17 O m L (v°)\',d:1,g:[7,11],f:{e:q,j:\'n\'},I:{c:{B:0.N},a:p,b:\'J\'},r:{c:{w:-v},b:\'H\',a:F,h:\'C\'},A:{c:{e:W},b:\'J\',a:p}},{i:\'E s 17 O m K (v°)\',d:1,g:[7,11],f:{e:q,j:\'D\'},I:{c:{B:0.N},a:p,b:\'J\'},r:{c:{w:v},b:\'H\',a:F,h:\'C\'},A:{c:{e:W},b:\'J\',a:p}},{i:\'E s 17 O m G (v°)\',d:1,g:[7,11],f:{e:q,j:\'n\'},I:{c:{B:0.N},a:p,b:\'J\'},r:{c:{x:v},b:\'H\',a:F,h:\'z\'},A:{c:{e:W},b:\'J\',a:p}},{i:\'E s 17 O m t (v°)\',d:1,g:[7,11],f:{e:q,j:\'D\'},I:{c:{B:0.N},a:p,b:\'J\'},r:{c:{x:-v},b:\'H\',a:F,h:\'z\'},A:{c:{e:W},b:\'J\',a:p}},{i:\'E s z 17 O k (v°)\',d:1,g:[7,11],f:{e:q,j:\'k\'},I:{c:{B:0.N},a:p,b:\'J\'},r:{c:{x:v},b:\'H\',a:F,h:\'z\'},A:{c:{e:W},b:\'J\',a:p}},{i:\'E s C 17 O k (v°)\',d:1,g:[7,11],f:{e:q,j:\'k\'},I:{c:{B:0.N},a:p,b:\'J\'},r:{c:{w:-v},b:\'H\',a:F,h:\'C\'},A:{c:{e:W},b:\'J\',a:p}},{i:\'E s C 17 1I O m G (v°)\',d:1,g:[7,11],f:{e:q,j:\'n\'},r:{c:{B:0.N,w:1r},b:\'14\',a:F,h:\'C\'},A:{c:{w:v},b:\'14\',a:F}},{i:\'E s C 17 1I O m t (v°)\',d:1,g:[7,11],f:{e:q,j:\'D\'},r:{c:{B:0.N,w:-1r},b:\'14\',a:F,h:\'C\'},A:{c:{w:-v},b:\'14\',a:F}},{i:\'1b 1t m G (l°, R T)\',d:1,g:1,f:{e:q,j:\'n\',T:\'R\'},r:{c:{x:l},b:\'u\',a:18,h:\'z\'}},{i:\'1b 1t m t (l°, R T)\',d:1,g:1,f:{e:q,j:\'n\',T:\'R\'},r:{c:{x:-l},b:\'u\',a:18,h:\'z\'}},{i:\'1b 1t m L (l°, R T)\',d:1,g:1,f:{e:q,j:\'n\',T:\'R\'},r:{c:{w:-l},b:\'u\',a:18,h:\'C\'}},{i:\'1b 1t m K (l°, R T)\',d:1,g:1,f:{e:q,j:\'n\',T:\'R\'},r:{c:{w:l},b:\'u\',a:18,h:\'C\'}},{i:\'E s S 1k m G (l°, R T)\',d:[2,4],g:[4,7],f:{e:q,j:\'n\',T:\'R\'},I:{c:{B:0.N},a:1n,b:\'14\'},r:{c:{x:l},b:\'H\',a:F,h:\'z\'},A:{a:1e,b:\'H\'}},{i:\'E s S 1k m t (l°, R T)\',d:[2,4],g:[4,7],f:{e:q,j:\'D\',T:\'R\'},I:{c:{B:0.N},a:1n,b:\'14\'},r:{c:{x:-l},b:\'H\',a:F,h:\'z\'},A:{a:1e,b:\'H\'}},{i:\'E s S 1k m L (l°, R T)\',d:[2,4],g:[4,7],f:{e:q,j:\'1i-n\',T:\'R\'},I:{c:{B:0.N},a:1n,b:\'14\'},r:{c:{w:-l},b:\'H\',a:F,h:\'C\'},A:{a:1e,b:\'H\'}},{i:\'E s S 1k m K (l°, R T)\',d:[2,4],g:[4,7],f:{e:q,j:\'1i-D\',T:\'R\'},I:{c:{B:0.N},a:1n,b:\'14\'},r:{c:{w:l},b:\'H\',a:F,h:\'C\'},A:{a:1e,b:\'H\'}},{i:\'E s z S 1k k (l°, R T)\',d:[2,4],g:[4,7],f:{e:q,j:\'k\',T:\'R\'},I:{c:{B:0.1h},a:1p,b:\'14\'},r:{c:{x:l},b:\'H\',a:1p,h:\'z\'},A:{a:1p,b:\'H\'}},{i:\'E s C S 1k k (l°, R T)\',d:[2,4],g:[4,7],f:{e:q,j:\'k\',T:\'R\'},I:{c:{B:0.1h},a:1p,b:\'14\'},r:{c:{w:l},b:\'H\',a:1p,h:\'C\'},A:{a:1p,b:\'H\'}},{i:\'E s S d m G (l°, R T)\',d:[5,9],g:1,f:{e:1h,j:\'n\',T:\'R\'},I:{c:{B:0.N},a:p,b:\'J\'},r:{c:{x:l},b:\'u\',a:1m,h:\'z\'},A:{c:{e:W},b:\'y\',a:1o}},{i:\'E s S d m t (l°, R T)\',d:[5,9],g:1,f:{e:1h,j:\'D\',T:\'R\'},I:{c:{B:0.N},a:p,b:\'J\'},r:{c:{x:-l},b:\'u\',a:1m,h:\'z\'},A:{c:{e:W},b:\'y\',a:1o}},{i:\'E s S d m L (l°, R T)\',d:[5,9],g:1,f:{e:1h,j:\'n\',T:\'R\'},I:{c:{B:0.N},a:p,b:\'J\'},r:{c:{w:-l},b:\'H\',a:F,h:\'C\'},A:{c:{e:W},b:\'y\',a:1o}},{i:\'E s S d m K (l°, R T)\',d:[5,9],g:1,f:{e:1h,j:\'D\',T:\'R\'},I:{c:{B:0.N},a:p,b:\'J\'},r:{c:{w:l},b:\'H\',a:F,h:\'C\'},A:{c:{e:W},b:\'y\',a:1o}},{i:\'E s z S d k (l°, R T)\',d:[5,9],g:1,f:{e:1h,j:\'k\',T:\'R\'},I:{c:{B:0.N},a:p,b:\'J\'},r:{c:{x:l},b:\'u\',a:1m,h:\'z\'},A:{c:{e:W},b:\'y\',a:1o}},{i:\'E s C S d k (l°, R T)\',d:[5,9],g:1,f:{e:1h,j:\'k\',T:\'R\'},I:{c:{B:0.N},a:p,b:\'J\'},r:{c:{w:-l},b:\'H\',a:F,h:\'C\'},A:{c:{e:W},b:\'y\',a:1o}},{i:\'E s S O m L (l°, R T)\',d:1,g:[7,11],f:{e:1h,j:\'n\',T:\'R\'},I:{c:{B:0.N},a:p,b:\'J\'},r:{c:{w:-l},b:\'u\',a:1m,h:\'C\'},A:{c:{e:W},b:\'y\',a:1o}},{i:\'E s S O m K (l°, R T)\',d:1,g:[7,11],f:{e:1h,j:\'D\',T:\'R\'},I:{c:{B:0.N},a:p,b:\'J\'},r:{c:{w:l},b:\'u\',a:1m,h:\'C\'},A:{c:{e:W},b:\'y\',a:1o}},{i:\'E s S O m G (l°, R T)\',d:1,g:[7,11],f:{e:1h,j:\'n\',T:\'R\'},I:{c:{B:0.N},a:p,b:\'J\'},r:{c:{x:l},b:\'H\',a:F,h:\'z\'},A:{c:{e:W},b:\'y\',a:1o}},{i:\'E s S O m t (l°, R T)\',d:1,g:[7,11],f:{e:1h,j:\'D\',T:\'R\'},I:{c:{B:0.N},a:p,b:\'J\'},r:{c:{x:-l},b:\'H\',a:F,h:\'z\'},A:{c:{e:W},b:\'y\',a:1o}},{i:\'E s z S O k (l°, R T)\',d:1,g:[7,11],f:{e:1h,j:\'k\',T:\'R\'},I:{c:{B:0.N},a:p,b:\'J\'},r:{c:{x:l},b:\'H\',a:F,h:\'z\'},A:{c:{e:W},b:\'y\',a:1o}},{i:\'E s C S O k (l°, R T)\',d:1,g:[7,11],f:{e:1h,j:\'k\',T:\'R\'},I:{c:{B:0.N},a:p,b:\'J\'},r:{c:{w:-l},b:\'u\',a:1m,h:\'C\'},A:{c:{e:W},b:\'y\',a:1o}},{i:\'1S 1q s 1z 1M\',d:1,g:1,f:{e:1,j:\'n\',T:\'R\'},I:{c:{B:0.1h,x:-1P,1B:0},a:18,b:\'1A\'},r:{c:{B:1,x:-1C,1B:1},b:\'y\',a:18,h:\'z\'}},{i:\'1X 1q s 1z 1M\',d:1,g:1,f:{e:1,j:\'n\',T:\'R\'},I:{c:{B:0.1h,w:-1P,1B:0},a:18,b:\'1A\'},r:{c:{B:1,w:-1C,1B:1},b:\'y\',a:18,h:\'C\'}},{i:\'1S 1q s 1z 1k\',d:[2,3],g:[3,5],f:{e:1c,j:\'k\'},I:{c:{B:0.q,1B:0},a:1e,b:\'1A\'},r:{c:{x:-1r,w:l},b:\'u\',a:1,h:\'C\'},A:{c:{x:0,1B:1},b:\'y\',a:1m}},{i:\'1X 1q s 1z 1k\',d:[2,3],g:[3,5],f:{e:1c,j:\'k\'},I:{c:{B:0.q,1B:0},a:1e,b:\'1A\'},r:{c:{w:-1r,x:l},b:\'u\',a:1,h:\'z\'},A:{c:{w:0,1B:1},b:\'y\',a:1m}}]};',62,136,'||||||||||duration|easing|transition|rows|delay|tile|cols|direction|name|sequence|random|180|to|forward|type|600|75|animation|and|left|easeInOutQuart|90|rotateX|rotateY|easeOutQuart|horizontal|after|scale3d|vertical|reverse|Scaling|1000|right|easeInOutBack|before|easeOutBack|top|bottom|from|85|columns|tiles|mixed|large|spinning|depth|750|slide|200|sliding|Fading|Sliding||||fade|easeInOutQuint|||turning|1500|55|100|Spinning|50|Turning|350|easeInOutQuad|scale|65|col|30|cuboids|500|1200|450|400|700|rotating|45|rotate|cuboid|35|Carousel|Flying|Smooth|800|fading|easeInQuart|opacity|540|95|Vertical|Mirror|Horizontal|mirror|drunk|91|1300|out|cube|150|2000|270|in|directions|Horizontally|Drunk|colums|scaling|topright|Vertically|bottomright|t3d|87|diagonal|layerSliderTransitions|bottomleft|850||topleft|sliging|linear|Crossfading|t2d|var'.split('|'),0,{})); // source --> //netsu.com.br/wp-content/plugins/wonderplugin-gallery/engine/wonderplugingallery.js?ver=9.2 /** Wonderplugin Gallery Plugin Free Version * Copyright 2015 Magic Hills Pty Ltd All Rights Reserved * Website: http://www.wonderplugin.com * Version 9.2 */ (function() { var scripts = document.getElementsByTagName("script"); var jsFolder = ""; for (var i = 0; i < scripts.length; i++) if (scripts[i].src && scripts[i].src.match(/wonderplugingallery\.js/i)) jsFolder = scripts[i].src.substr(0, scripts[i].src.lastIndexOf("/") + 1); var loadjQuery = false; if (typeof jQuery == "undefined") loadjQuery = true; else { var jVersion = jQuery.fn.jquery.split("."); if (jVersion[0] < 1 || jVersion[0] == 1 && jVersion[1] < 6) loadjQuery = true } if (loadjQuery) { var head = document.getElementsByTagName("head")[0]; var script = document.createElement("script"); script.setAttribute("type", "text/javascript"); if (script.readyState) script.onreadystatechange = function() { if (script.readyState == "loaded" || script.readyState == "complete") { script.onreadystatechange = null; loadHtml5Gallery(jsFolder) } }; else script.onload = function() { loadHtml5Gallery(jsFolder) }; script.setAttribute("src", jsFolder + "jquery.js"); head.appendChild(script) } else loadHtml5Gallery(jsFolder) })(); function loadHtml5Gallery(jsFolder) { jQuery.easing["jswing"] = jQuery.easing["swing"]; jQuery.extend(jQuery.easing, { def: "easeOutQuad", swing: function(x, t, b, c, d) { return jQuery.easing[jQuery.easing.def](x, t, b, c, d) }, easeInQuad: function(x, t, b, c, d) { return c * (t /= d) * t + b }, easeOutQuad: function(x, t, b, c, d) { return -c * (t /= d) * (t - 2) + b }, easeInOutQuad: function(x, t, b, c, d) { if ((t /= d / 2) < 1) return c / 2 * t * t + b; return -c / 2 * (--t * (t - 2) - 1) + b }, easeInCubic: function(x, t, b, c, d) { return c * (t /= d) * t * t + b }, easeOutCubic: function(x, t, b, c, d) { return c * ((t = t / d - 1) * t * t + 1) + b }, easeInOutCubic: function(x, t, b, c, d) { if ((t /= d / 2) < 1) return c / 2 * t * t * t + b; return c / 2 * ((t -= 2) * t * t + 2) + b }, easeInQuart: function(x, t, b, c, d) { return c * (t /= d) * t * t * t + b }, easeOutQuart: function(x, t, b, c, d) { return -c * ((t = t / d - 1) * t * t * t - 1) + b }, easeInOutQuart: function(x, t, b, c, d) { if ((t /= d / 2) < 1) return c / 2 * t * t * t * t + b; return -c / 2 * ((t -= 2) * t * t * t - 2) + b }, easeInQuint: function(x, t, b, c, d) { return c * (t /= d) * t * t * t * t + b }, easeOutQuint: function(x, t, b, c, d) { return c * ((t = t / d - 1) * t * t * t * t + 1) + b }, easeInOutQuint: function(x, t, b, c, d) { if ((t /= d / 2) < 1) return c / 2 * t * t * t * t * t + b; return c / 2 * ((t -= 2) * t * t * t * t + 2) + b }, easeInSine: function(x, t, b, c, d) { return -c * Math.cos(t / d * (Math.PI / 2)) + c + b }, easeOutSine: function(x, t, b, c, d) { return c * Math.sin(t / d * (Math.PI / 2)) + b }, easeInOutSine: function(x, t, b, c, d) { return -c / 2 * (Math.cos(Math.PI * t / d) - 1) + b }, easeInExpo: function(x, t, b, c, d) { return t == 0 ? b : c * Math.pow(2, 10 * (t / d - 1)) + b }, easeOutExpo: function(x, t, b, c, d) { return t == d ? b + c : c * (-Math.pow(2, -10 * t / d) + 1) + b }, easeInOutExpo: function(x, t, b, c, d) { if (t == 0) return b; if (t == d) return b + c; if ((t /= d / 2) < 1) return c / 2 * Math.pow(2, 10 * (t - 1)) + b; return c / 2 * (-Math.pow(2, -10 * --t) + 2) + b }, easeInCirc: function(x, t, b, c, d) { return -c * (Math.sqrt(1 - (t /= d) * t) - 1) + b }, easeOutCirc: function(x, t, b, c, d) { return c * Math.sqrt(1 - (t = t / d - 1) * t) + b }, easeInOutCirc: function(x, t, b, c, d) { if ((t /= d / 2) < 1) return -c / 2 * (Math.sqrt(1 - t * t) - 1) + b; return c / 2 * (Math.sqrt(1 - (t -= 2) * t) + 1) + b }, easeInElastic: function(x, t, b, c, d) { var s = 1.70158; var p = 0; var a = c; if (t == 0) return b; if ((t /= d) == 1) return b + c; if (!p) p = d * 0.3; if (a < Math.abs(c)) { a = c; var s = p / 4 } else var s = p / (2 * Math.PI) * Math.asin(c / a); return -(a * Math.pow(2, 10 * (t -= 1)) * Math.sin((t * d - s) * 2 * Math.PI / p)) + b }, easeOutElastic: function(x, t, b, c, d) { var s = 1.70158; var p = 0; var a = c; if (t == 0) return b; if ((t /= d) == 1) return b + c; if (!p) p = d * 0.3; if (a < Math.abs(c)) { a = c; var s = p / 4 } else var s = p / (2 * Math.PI) * Math.asin(c / a); return a * Math.pow(2, -10 * t) * Math.sin((t * d - s) * 2 * Math.PI / p) + c + b }, easeInOutElastic: function(x, t, b, c, d) { var s = 1.70158; var p = 0; var a = c; if (t == 0) return b; if ((t /= d / 2) == 2) return b + c; if (!p) p = d * 0.3 * 1.5; if (a < Math.abs(c)) { a = c; var s = p / 4 } else var s = p / (2 * Math.PI) * Math.asin(c / a); if (t < 1) return -0.5 * a * Math.pow(2, 10 * (t -= 1)) * Math.sin((t * d - s) * 2 * Math.PI / p) + b; return a * Math.pow(2, -10 * (t -= 1)) * Math.sin((t * d - s) * 2 * Math.PI / p) * 0.5 + c + b }, easeInBack: function(x, t, b, c, d, s) { if (s == undefined) s = 1.70158; return c * (t /= d) * t * ((s + 1) * t - s) + b }, easeOutBack: function(x, t, b, c, d, s) { if (s == undefined) s = 1.70158; return c * ((t = t / d - 1) * t * ((s + 1) * t + s) + 1) + b }, easeInOutBack: function(x, t, b, c, d, s) { if (s == undefined) s = 1.70158; if ((t /= d / 2) < 1) return c / 2 * t * t * (((s *= 1.525) + 1) * t - s) + b; return c / 2 * ((t -= 2) * t * (((s *= 1.525) + 1) * t + s) + 2) + b }, easeInBounce: function(x, t, b, c, d) { return c - jQuery.easing.easeOutBounce(x, d - t, 0, c, d) + b }, easeOutBounce: function(x, t, b, c, d) { if ((t /= d) < 1 / 2.75) return c * 7.5625 * t * t + b; else if (t < 2 / 2.75) return c * (7.5625 * (t -= 1.5 / 2.75) * t + 0.75) + b; else if (t < 2.5 / 2.75) return c * (7.5625 * (t -= 2.25 / 2.75) * t + 0.9375) + b; else return c * (7.5625 * (t -= 2.625 / 2.75) * t + 0.984375) + b }, easeInOutBounce: function(x, t, b, c, d) { if (t < d / 2) return jQuery.easing.easeInBounce(x, t * 2, 0, c, d) * 0.5 + b; return jQuery.easing.easeOutBounce(x, t * 2 - d, 0, c, d) * 0.5 + c * 0.5 + b } }); (function($) { $.fn.touchSwipe = function(options) { var defaults = { preventWebBrowser: false, swipeLeft: null, swipeRight: null, swipeTop: null, swipeBottom: null }; if (options) $.extend(defaults, options); return this.each(function() { var startX = -1, startY = -1; var curX = -1, curY = -1; function touchStart(event) { var e = event.originalEvent; if (e.targetTouches.length >= 1) { startX = e.targetTouches[0].pageX; startY = e.targetTouches[0].pageY } else touchCancel(event) } function touchMove(event) { if (defaults.preventWebBrowser) event.preventDefault(); var e = event.originalEvent; if (e.targetTouches.length >= 1) { curX = e.targetTouches[0].pageX; curY = e.targetTouches[0].pageY } else touchCancel(event) } function touchEnd(event) { if (curX > 0 || curY > 0) { triggerHandler(); touchCancel(event) } else touchCancel(event) } function touchCancel(event) { startX = -1; startY = -1; curX = -1; curY = -1 } function triggerHandler() { if (Math.abs(curX - startX) > 100) if (curX > startX) { if (defaults.swipeRight) defaults.swipeRight.call() } else if (defaults.swipeLeft) defaults.swipeLeft.call(); if (Math.abs(curY - startY) > 100) if (curY > startY) { if (defaults.swipeBottom) defaults.swipeBottom.call() } else if (defaults.swipeTop) defaults.swipeTop.call() } try { $(this).on("touchstart", touchStart); $(this).on("touchmove", touchMove); $(this).on("touchend", touchEnd); $(this).on("touchcancel", touchCancel) } catch (e) {} }) } })(jQuery); (function($) { $.fn.drag = function(str, arg, opts) { var type = typeof str == "string" ? str : "", fn = $.isFunction(str) ? str : $.isFunction(arg) ? arg : null; if (type.indexOf("drag") !== 0) type = "drag" + type; opts = (str == fn ? arg : opts) || {}; return fn ? this.on(type, opts, fn) : this.trigger(type) }; var $event = $.event; var $special = $event.special; var drag = null; drag = $special.drag = { defaults: { which: 1, distance: 0, not: ":input", handle: null, relative: false, drop: true, click: false }, datakey: "dragdata", livekey: "livedrag", add: function(obj) { var data = $.data(this, drag.datakey), opts = obj.data || {}; data.related += 1; if (!data.live && obj.selector) { data.live = true; $event.add(this, "draginit." + drag.livekey, drag.delegate) } $.each(drag.defaults, function(key, def) { if (opts[key] !== undefined) data[key] = opts[key] }) }, remove: function() { $.data(this, drag.datakey).related -= 1 }, setup: function() { if ($.data(this, drag.datakey)) return; var data = $.extend({ related: 0 }, drag.defaults); $.data(this, drag.datakey, data); $event.add(this, "mousedown", drag.init, data); if (this.attachEvent) this.attachEvent("ondragstart", drag.dontstart) }, teardown: function() { if ($.data(this, drag.datakey).related) return; $.removeData(this, drag.datakey); $event.remove(this, "mousedown", drag.init); $event.remove(this, "draginit", drag.delegate); drag.textselect(true); if (this.detachEvent) this.detachEvent("ondragstart", drag.dontstart) }, init: function(event) { var dd = event.data, results; if (dd.which > 0 && event.which != dd.which) return; if ($(event.target).is(dd.not)) return; if (dd.handle && !$(event.target).closest(dd.handle, event.currentTarget).length) return; dd.propagates = 1; dd.interactions = [drag.interaction(this, dd)]; dd.target = event.target; dd.pageX = event.pageX; dd.pageY = event.pageY; dd.dragging = null; results = drag.hijack(event, "draginit", dd); if (!dd.propagates) return; results = drag.flatten(results); if (results && results.length) { dd.interactions = []; $.each(results, function() { dd.interactions.push(drag.interaction(this, dd)) }) } dd.propagates = dd.interactions.length; if (dd.drop !== false && $special.drop) $special.drop.handler(event, dd); drag.textselect(false); $event.add(document, "mousemove mouseup", drag.handler, dd); return false }, interaction: function(elem, dd) { return { drag: elem, callback: new drag.callback, droppable: [], offset: $(elem)[dd.relative ? "position" : "offset"]() || { top: 0, left: 0 } } }, handler: function(event) { var dd = event.data; switch (event.type) { case !dd.dragging && "mousemove": if (Math.pow(event.pageX - dd.pageX, 2) + Math.pow(event.pageY - dd.pageY, 2) < Math.pow(dd.distance, 2)) break; event.target = dd.target; drag.hijack(event, "dragstart", dd); if (dd.propagates) dd.dragging = true; case "mousemove": if (dd.dragging) { drag.hijack(event, "drag", dd); if (dd.propagates) { if (dd.drop !== false && $special.drop) $special.drop.handler(event, dd); break } event.type = "mouseup" } case "mouseup": $event.remove(document, "mousemove mouseup", drag.handler); if (dd.dragging) { if (dd.drop !== false && $special.drop) $special.drop.handler(event, dd); drag.hijack(event, "dragend", dd) } drag.textselect(true); if (dd.click === false && dd.dragging) { jQuery.event.triggered = true; setTimeout(function() { jQuery.event.triggered = false }, 20); dd.dragging = false } break } }, delegate: function(event) { var elems = [], target, events = $.data(this, "events") || {}; $.each(events.live || [], function(i, obj) { if (obj.preType.indexOf("drag") !== 0) return; target = $(event.target).closest(obj.selector, event.currentTarget)[0]; if (!target) return; $event.add(target, obj.origType + "." + drag.livekey, obj.origHandler, obj.data); if ($.inArray(target, elems) < 0) elems.push(target) }); if (!elems.length) return false; return $(elems).on("dragend." + drag.livekey, function() { $event.remove(this, "." + drag.livekey) }) }, hijack: function(event, type, dd, x, elem) { if (!dd) return; var orig = { event: event.originalEvent, type: event.type }, mode = type.indexOf("drop") ? "drag" : "drop", result, i = x || 0, ia, callback, len = !isNaN(x) ? x : dd.interactions.length; event.type = type; event.originalEvent = null; dd.results = []; do if (ia = dd.interactions[i]) { if (type !== "dragend" && ia.cancelled) continue; callback = drag.properties(event, dd, ia); ia.results = []; $(elem || ia[mode] || dd.droppable).each(function(p, subject) { callback.target = subject; if ($event.handle) result = subject ? $event.handle.call(subject, event, callback) : null; else result = subject ? $event.dispatch.call(subject, event, callback) : null; if (result === false) { if (mode == "drag") { ia.cancelled = true; dd.propagates -= 1 } if (type == "drop") ia[mode][p] = null } else if (type == "dropinit") ia.droppable.push(drag.element(result) || subject); if (type == "dragstart") ia.proxy = $(drag.element(result) || ia.drag)[0]; ia.results.push(result); delete event.result; if (type !== "dropinit") return result }); dd.results[i] = drag.flatten(ia.results); if (type == "dropinit") ia.droppable = drag.flatten(ia.droppable); if (type == "dragstart" && !ia.cancelled) callback.update() } while (++i < len); event.type = orig.type; event.originalEvent = orig.event; return drag.flatten(dd.results) }, properties: function(event, dd, ia) { var obj = ia.callback; obj.drag = ia.drag; obj.proxy = ia.proxy || ia.drag; obj.startX = dd.pageX; obj.startY = dd.pageY; obj.deltaX = event.pageX - dd.pageX; obj.deltaY = event.pageY - dd.pageY; obj.originalX = ia.offset.left; obj.originalY = ia.offset.top; obj.offsetX = event.pageX - (dd.pageX - obj.originalX); obj.offsetY = event.pageY - (dd.pageY - obj.originalY); obj.drop = drag.flatten((ia.drop || []).slice()); obj.available = drag.flatten((ia.droppable || []).slice()); return obj }, element: function(arg) { if (arg && (arg.jquery || arg.nodeType == 1)) return arg }, flatten: function(arr) { return $.map(arr, function(member) { return member && member.jquery ? $.makeArray(member) : member && member.length ? drag.flatten(member) : member }) }, textselect: function(bool) { $(document)[bool ? "unbind" : "bind"]("selectstart", drag.dontstart).attr("unselectable", bool ? "off" : "on").css("MozUserSelect", bool ? "" : "none") }, dontstart: function() { return false }, callback: function() {} }; drag.callback.prototype = { update: function() { if ($special.drop && this.available.length) $.each(this.available, function(i) { $special.drop.locate(this, i) }) } }; $special.draginit = $special.dragstart = $special.dragend = drag })(jQuery); (function($) { $.fn.html5boxTransition = function(id, $prev, $next, transition, callback) { $parent = this; var effects = transition.effect; var easing = transition.easing; var duration = transition.duration; var direction = transition.direction; var effect = null; if (effects) { effects = effects.split(","); effect = effects[Math.floor(Math.random() * effects.length)]; effect = $.trim(effect.toLowerCase()) } if (effect && transition[effect]) { if ("duration" in transition[effect]) duration = transition[effect].duration; if (transition[effect].easing) easing = transition[effect].easing } if (effect == "fade" || effect == "fadein") { $next.hide(); $prev.insertBefore($next); $next.fadeIn(duration, easing, function() { $prev.remove(); callback() }) } else if (effect == "fadeout") { $next.show(); $prev.fadeOut(duration, easing, function() { $prev.remove(); callback() }) } else if (effect == "fadeinout") { $next.hide(); $prev.insertBefore($next); $prev.fadeOut(duration, easing); $next.fadeIn(duration, easing, function() { $prev.remove(); callback() }) } else if (effect == "crossfade") { $next.hide(); $prev.fadeOut(duration / 2, easing, function() { $next.fadeIn(duration / 2, easing, function() { $prev.remove(); callback() }) }) } else if (effect == "slide") { $parent.css({ overflow: "hidden" }); if (direction) { $next.css({ left: "100%" }); $next.animate({ left: "0%" }, duration, easing); $prev.animate({ left: "-100%" }, duration, easing, function() { $prev.remove(); callback() }) } else { $next.css({ left: "-100%" }); $next.animate({ left: "0%" }, duration, easing); $prev.animate({ left: "100%" }, duration, easing, function() { $prev.remove(); callback() }) } } else { $next.show(); $prev.remove(); callback() } } })(jQuery); (function($) { $.fn.addHTML5VideoControls = function(skinFolder, parentInst, videoElemId) { var isTouch = "ontouchstart" in window; var eStart = isTouch ? "touchstart" : "mousedown"; var eMove = isTouch ? "touchmove" : "mousemove"; var eCancel = isTouch ? "touchcancel" : "mouseup"; var eClick = "click"; var BUTTON_SIZE = 32; var BAR_HEIGHT = isTouch ? 48 : 36; var hideControlsTimerId = null; var hideVolumeBarTimeoutId = null; var sliderDragging = false; var isFullscreen = false; var userActive = true; var isIPhone = navigator.userAgent.match(/iPod/i) != null || navigator.userAgent.match(/iPhone/i) != null; var isHd = $(this).data("ishd"); var hd = $(this).data("hd"); var src = $(this).data("src"); var $videoObj = $(this); $videoObj.get(0).removeAttribute("controls"); if (isIPhone) { var h = $videoObj.height() - BAR_HEIGHT; $videoObj.css({ height: h }) } var $videoPlay = $("
"); if (!isIPhone) { $videoObj.after($videoPlay); $videoPlay.css({ position: "absolute", top: "50%", left: "50%", display: "block", cursor: "pointer", width: 64, height: 64, "margin-left": -32, "margin-top": -32, "background-image": "url('" + skinFolder + "html5boxplayer_playvideo.png" + "')", "background-position": "center center", "background-repeat": "no-repeat" }).on(eClick, function() { $videoObj.get(0).play() }) } var $videoFullscreenBg = $("
"); var $videoControls = $("
" + "
" + "
" + "
" + "
" + "
" + "
--:--
" + "
" + "
" + "
" + "
" + "
" + "
" + "
" + "
" + "
" + "
" + "
--:--
" + "
" + "
" + "
" + "
" + "
" + "
" + "
"); $videoObj.after($videoControls); $videoObj.after($videoFullscreenBg); $videoFullscreenBg.css({ display: "none", position: "fixed", left: 0, top: 0, bottom: 0, right: 0, "z-index": 2147483647 }); $videoControls.css({ display: "block", position: "absolute", width: "100%", height: BAR_HEIGHT, left: 0, bottom: 0 }); var userActivate = function() { userActive = true }; $videoObj.on(eClick, function() { userActive = true }).hover(function() { userActive = true }, function() { userActive = false }); setInterval(function() { if (userActive) { $videoControls.show(); userActive = false; clearTimeout(hideControlsTimerId); hideControlsTimerId = setTimeout(function() { if (!$videoObj.get(0).paused) $videoControls.fadeOut() }, 5E3) } }, 250); $(".html5boxVideoControlsBg", $videoControls).css({ display: "block", position: "absolute", width: "100%", height: "100%", left: 0, top: 0, "background-color": "#000000", opacity: 0.7, filter: "alpha(opacity=70)" }); $(".html5boxPlayPause", $videoControls).css({ display: "block", position: "relative", width: BUTTON_SIZE + "px", height: BUTTON_SIZE + "px", margin: Math.floor((BAR_HEIGHT - BUTTON_SIZE) / 2), "float": "left" }); var $videoBtnPlay = $(".html5boxPlay", $videoControls); var $videoBtnPause = $(".html5boxPause", $videoControls); $videoBtnPlay.css({ display: "block", position: "absolute", top: 0, left: 0, width: BUTTON_SIZE + "px", height: BUTTON_SIZE + "px", cursor: "pointer", "background-image": "url('" + skinFolder + "html5boxplayer_playpause.png" + "')", "background-position": "top left" }).hover(function() { $(this).css({ "background-position": "bottom left" }) }, function() { $(this).css({ "background-position": "top left" }) }).on(eClick, function() { $videoObj.get(0).play() }); $videoBtnPause.css({ display: "none", position: "absolute", top: 0, left: 0, width: BUTTON_SIZE + "px", height: BUTTON_SIZE + "px", cursor: "pointer", "background-image": "url('" + skinFolder + "html5boxplayer_playpause.png" + "')", "background-position": "top right" }).hover(function() { $(this).css({ "background-position": "bottom right" }) }, function() { $(this).css({ "background-position": "top right" }) }).on(eClick, function() { $videoObj.get(0).pause() }); var $videoTimeCurrent = $(".html5boxTimeCurrent", $videoControls); var $videoTimeTotal = $(".html5boxTimeTotal", $videoControls); var $videoSeeker = $(".html5boxSeeker", $videoControls); var $videoSeekerPlay = $(".html5boxSeekerPlay", $videoControls); var $videoSeekerBuffer = $(".html5boxSeekerBuffer", $videoControls); var $videoSeekerHandler = $(".html5boxSeekerHandler", $videoControls); $videoTimeCurrent.css({ display: "block", position: "relative", "float": "left", "line-height": BAR_HEIGHT + "px", "font-weight": "normal", "font-size": "12px", margin: "0 8px", "font-family": "Arial, Helvetica, sans-serif", color: "#fff" }); $videoTimeTotal.css({ display: "block", position: "relative", "float": "right", "line-height": BAR_HEIGHT + "px", "font-weight": "normal", "font-size": "12px", margin: "0 8px", "font-family": "Arial, Helvetica, sans-serif", color: "#fff" }); $videoSeeker.css({ display: "block", cursor: "pointer", overflow: "hidden", position: "relative", height: "10px", "background-color": "#222", margin: Math.floor((BAR_HEIGHT - 10) / 2) + "px 4px" }).on(eStart, function(e) { var e0 = isTouch ? e.originalEvent.touches[0] : e; var pos = e0.pageX - $videoSeeker.offset().left; $videoSeekerPlay.css({ width: pos }); $videoObj.get(0).currentTime = pos * $videoObj.get(0).duration / $videoSeeker.width(); $videoSeeker.on(eMove, function(e) { var e0 = isTouch ? e.originalEvent.touches[0] : e; var pos = e0.pageX - $videoSeeker.offset().left; $videoSeekerPlay.css({ width: pos }); $videoObj.get(0).currentTime = pos * $videoObj.get(0).duration / $videoSeeker.width() }) }).on(eCancel, function() { $videoSeeker.off(eMove) }); $videoSeekerBuffer.css({ display: "block", position: "absolute", left: 0, top: 0, height: "100%", "background-color": "#444" }); $videoSeekerPlay.css({ display: "block", position: "absolute", left: 0, top: 0, height: "100%", "background-color": "#fcc500" }); if (!isIPhone && ($videoObj.get(0).requestFullscreen || $videoObj.get(0).webkitRequestFullScreen || $videoObj.get(0).mozRequestFullScreen || $videoObj.get(0).webkitEnterFullScreen || $videoObj.get(0).msRequestFullscreen)) { var switchScreen = function(fullscreen) { if (fullscreen) { var isIE11 = navigator.userAgent.match(/Trident\/7/) != null && navigator.userAgent.match(/rv:11/) != null; var isIE = navigator.userAgent.match(/MSIE/i) != null && !this.options.isOpera; if (isIE11 || isIE) $videoObj.get(0).setAttribute("controls", "controls"); if ($videoObj.get(0).requestFullscreen) $videoObj.get(0).requestFullscreen(); else if ($videoObj.get(0).webkitRequestFullScreen) $videoObj.get(0).webkitRequestFullScreen(); else if ($videoObj.get(0).mozRequestFullScreen) $videoObj.get(0).mozRequestFullScreen(); else if ($videoObj.get(0).webkitEnterFullScreen) $videoObj.get(0).webkitEnterFullScreen(); if ($videoObj.get(0).msRequestFullscreen) $videoObj.get(0).msRequestFullscreen() } else if (document.cancelFullScreen) document.cancelFullScreen(); else if (document.mozCancelFullScreen) document.mozCancelFullScreen(); else if (document.webkitCancelFullScreen) document.webkitCancelFullScreen(); else if (document.webkitExitFullscreen) document.webkitExitFullscreen(); else if (document.msExitFullscreen) document.msExitFullscreen() }; var switchScreenCSS = function(fullscreen) { $videoControls.css({ position: fullscreen ? "fixed" : "absolute" }); var backgroundPosY = $videoFullscreen.css("background-position") ? $videoFullscreen.css("background-position").split(" ")[1] : $videoFullscreen.css("background-position-y"); $videoFullscreen.css({ "background-position": (fullscreen ? "right" : "left") + " " + backgroundPosY }); $videoFullscreenBg.css({ display: fullscreen ? "block" : "none" }); if (fullscreen) { $(document).on("mousemove", userActivate); $videoControls.css({ "z-index": 2147483647 }) } else { $(document).off("mousemove", userActivate); $videoControls.css({ "z-index": "" }) } }; document.addEventListener("MSFullscreenChange", function() { isFullscreen = document.msFullscreenElement != null; var isIE11 = navigator.userAgent.match(/Trident\/7/) != null && navigator.userAgent.match(/rv:11/) != null; var isIE = navigator.userAgent.match(/MSIE/i) != null && !this.options.isOpera; if (isIE11 || isIE) if (!isFullscreen) $videoObj.get(0).removeAttribute("controls"); switchScreenCSS(isFullscreen) }, false); document.addEventListener("fullscreenchange", function() { isFullscreen = document.fullscreen; switchScreenCSS(document.fullscreen) }, false); document.addEventListener("mozfullscreenchange", function() { isFullscreen = document.mozFullScreen; if (navigator.userAgent.match(/Firefox/i) != null) if (isFullscreen) $videoObj.get(0).setAttribute("controls", "controls"); else $videoObj.get(0).removeAttribute("controls"); switchScreenCSS(document.mozFullScreen) }, false); document.addEventListener("webkitfullscreenchange", function() { isFullscreen = document.webkitIsFullScreen; switchScreenCSS(document.webkitIsFullScreen) }, false); $videoObj.get(0).addEventListener("webkitbeginfullscreen", function() { isFullscreen = true }, false); $videoObj.get(0).addEventListener("webkitendfullscreen", function() { isFullscreen = false }, false); $("head").append(""); var $videoFullscreen = $(".html5boxFullscreen", $videoControls); $videoFullscreen.css({ display: "block", position: "relative", "float": "right", width: BUTTON_SIZE + "px", height: BUTTON_SIZE + "px", margin: Math.floor((BAR_HEIGHT - BUTTON_SIZE) / 2), cursor: "pointer", "background-image": "url('" + skinFolder + "html5boxplayer_fullscreen.png" + "')", "background-position": "left top" }).hover(function() { var backgroundPosX = $(this).css("background-position") ? $(this).css("background-position").split(" ")[0] : $(this).css("background-position-x"); $(this).css({ "background-position": backgroundPosX + " bottom" }) }, function() { var backgroundPosX = $(this).css("background-position") ? $(this).css("background-position").split(" ")[0] : $(this).css("background-position-x"); $(this).css({ "background-position": backgroundPosX + " top" }) }).on(eClick, function() { isFullscreen = !isFullscreen; switchScreen(isFullscreen) }) } if (hd) { var $videoHD = $(".html5boxHD", $videoControls); $videoHD.css({ display: "block", position: "relative", "float": "right", width: BUTTON_SIZE + "px", height: BUTTON_SIZE + "px", margin: Math.floor((BAR_HEIGHT - BUTTON_SIZE) / 2), cursor: "pointer", "background-image": "url('" + skinFolder + "html5boxplayer_hd.png" + "')", "background-position": (isHd ? "right" : "left") + " center" }).on(eClick, function() { isHd = !isHd; $(this).css({ "background-position": (isHd ? "right" : "left") + " center" }); parentInst.isHd = isHd; var isPaused = $videoObj.get(0).isPaused; $videoObj.get(0).setAttribute("src", (isHd ? hd : src) + "#t=" + $videoObj.get(0).currentTime); if (!isPaused) $videoObj.get(0).play(); else if (!isIPhone) $videoObj.get(0).pause() }) } var volume = $videoObj.get(0).volume; $videoObj.get(0).volume = volume / 2 + 0.1; if ($videoObj.get(0).volume === volume / 2 + 0.1) { $videoObj.get(0).volume = volume; var $videoVolume = $(".html5boxVolume", $videoControls); var $videoVolumeButton = $(".html5boxVolumeButton", $videoControls); var $videoVolumeBar = $(".html5boxVolumeBar", $videoControls); var $videoVolumeBarBg = $(".html5boxVolumeBarBg", $videoControls); var $videoVolumeBarActive = $(".html5boxVolumeBarActive", $videoControls); $videoVolume.css({ display: "block", position: "relative", "float": "right", width: BUTTON_SIZE + "px", height: BUTTON_SIZE + "px", margin: Math.floor((BAR_HEIGHT - BUTTON_SIZE) / 2) }).hover(function() { clearTimeout(hideVolumeBarTimeoutId); var volume = $videoObj.get(0).volume; $videoVolumeBarActive.css({ height: Math.round(volume * 100) + "%" }); $videoVolumeBar.show() }, function() { clearTimeout(hideVolumeBarTimeoutId); hideVolumeBarTimeoutId = setTimeout(function() { $videoVolumeBar.hide() }, 1E3) }); $videoVolumeButton.css({ display: "block", position: "absolute", top: 0, left: 0, width: BUTTON_SIZE + "px", height: BUTTON_SIZE + "px", cursor: "pointer", "background-image": "url('" + skinFolder + "html5boxplayer_volume.png" + "')", "background-position": "top left" }).hover(function() { var backgroundPosX = $(this).css("background-position") ? $(this).css("background-position").split(" ")[0] : $(this).css("background-position-x"); $(this).css({ "background-position": backgroundPosX + " bottom" }) }, function() { var backgroundPosX = $(this).css("background-position") ? $(this).css("background-position").split(" ")[0] : $(this).css("background-position-x"); $(this).css({ "background-position": backgroundPosX + " top" }) }).on(eClick, function() { var volume = $videoObj.get(0).volume; if (volume > 0) { volumeSaved = volume; volume = 0 } else volume = volumeSaved; var backgroundPosY = $(this).css("background-position") ? $(this).css("background-position").split(" ")[1] : $(this).css("background-position-y"); $videoVolumeButton.css({ "background-position": (volume > 0 ? "left" : "right") + " " + backgroundPosY }); $videoObj.get(0).volume = volume; $videoVolumeBarActive.css({ height: Math.round(volume * 100) + "%" }) }); $videoVolumeBar.css({ display: "none", position: "absolute", left: 4, bottom: "100%", width: 24, height: 80, "margin-bottom": Math.floor((BAR_HEIGHT - BUTTON_SIZE) / 2), "background-color": "#000000", opacity: 0.7, filter: "alpha(opacity=70)" }); $videoVolumeBarBg.css({ display: "block", position: "relative", width: 10, height: 68, margin: 7, cursor: "pointer", "background-color": "#222" }); $videoVolumeBarActive.css({ display: "block", position: "absolute", bottom: 0, left: 0, width: "100%", height: "100%", "background-color": "#fcc500" }); $videoVolumeBarBg.on(eStart, function(e) { var e0 = isTouch ? e.originalEvent.touches[0] : e; var vol = 1 - (e0.pageY - $videoVolumeBarBg.offset().top) / $videoVolumeBarBg.height(); vol = vol > 1 ? 1 : vol < 0 ? 0 : vol; $videoVolumeBarActive.css({ height: Math.round(vol * 100) + "%" }); $videoVolumeButton.css({ "background-position": "left " + (vol > 0 ? "top" : "bottom") }); $videoObj.get(0).volume = vol; $videoVolumeBarBg.on(eMove, function(e) { var e0 = isTouch ? e.originalEvent.touches[0] : e; var vol = 1 - (e0.pageY - $videoVolumeBarBg.offset().top) / $videoVolumeBarBg.height(); vol = vol > 1 ? 1 : vol < 0 ? 0 : vol; $videoVolumeBarActive.css({ height: Math.round(vol * 100) + "%" }); $videoVolumeButton.css({ "background-position": "left " + (vol > 0 ? "top" : "bottom") }); $videoObj.get(0).volume = vol }) }).on(eCancel, function() { $videoVolumeBarBg.off(eMove) }) } var calcTimeFormat = function(seconds) { var h0 = Math.floor(seconds / 3600); var h = h0 < 10 ? "0" + h0 : h0; var m0 = Math.floor((seconds - h0 * 3600) / 60); var m = m0 < 10 ? "0" + m0 : m0; var s0 = Math.floor(seconds - (h0 * 3600 + m0 * 60)); var s = s0 < 10 ? "0" + s0 : s0; var r = m + ":" + s; if (h0 > 0) r = h + ":" + r; return r }; var onVideoPlay = function() { $videoPlay.hide(); $videoBtnPlay.hide(); $videoBtnPause.show() }; var onVideoPause = function() { $videoControls.show(); clearTimeout(hideControlsTimerId); $videoPlay.show(); $videoBtnPlay.show(); $videoBtnPause.hide() }; var onVideoUpdate = function() { var curTime = $videoObj.get(0).currentTime; if (curTime) { $videoTimeCurrent.text(calcTimeFormat(curTime)); var duration = $videoObj.get(0).duration; if (duration) { $videoTimeTotal.text(calcTimeFormat(duration)); if (!sliderDragging) { var sliderW = $videoSeeker.width(); var pos = Math.round(sliderW * curTime / duration); $videoSeekerPlay.css({ width: pos }); $videoSeekerHandler.css({ left: pos }) } } } }; var onVideoProgress = function() { if ($videoObj.get(0).buffered && $videoObj.get(0).buffered.length > 0 && !isNaN($videoObj.get(0).buffered.end(0)) && !isNaN($videoObj.get(0).duration)) { var sliderW = $videoSeeker.width(); $videoSeekerBuffer.css({ width: Math.round(sliderW * $videoObj.get(0).buffered.end(0) / $videoObj.get(0).duration) }) } }; try { $videoObj.on("play", onVideoPlay); $videoObj.on("pause", onVideoPause); $videoObj.on("ended", onVideoPause); $videoObj.on("timeupdate", onVideoUpdate); $videoObj.on("progress", onVideoProgress) } catch (e) {} } })(jQuery); (function($) { var ELEM_ID = 0, ELEM_THUMBNAIL = 1, ELEM_SRC = 2, ELEM_SRC_OGG = 3, ELEM_SRC_WEBM = 4, ELEM_LINK = 5, ELEM_LINKTARGET = 6, ELEM_TITLE = 7, ELEM_INFORMATION = 8, ELEM_TYPE = 9, ELEM_WIDTH = 10, ELEM_HEIGHT = 11, ELEM_POSTER = 12, ELEM_HD = 13, ELEM_HD_OGG = 14, ELEM_HD_WEBM = 15, ELEM_DURATION = 16, ELEM_LIGHTBOXWIDTH = 17, ELEM_LIGHTBOXHEIGHT = 18, ELEM_YOUTUBEAPIKEY = 19, ELEM_YOUTUBEPLAYLISTID = 20, ELEM_YOUTUBEPLAYLISTMAXRESULTS = 21, ELEM_LIGHTBOX = 22, ELEM_POSTERWIDTH = 23, ELEM_POSTERHEIGHT = 24; var TYPE_IMAGE = 1, TYPE_SWF = 2, TYPE_MP3 = 3, TYPE_PDF = 4, TYPE_VIDEO_FLASH = 5, TYPE_VIDEO_MP4 = 6, TYPE_VIDEO_OGG = 7, TYPE_VIDEO_WEBM = 8, TYPE_VIDEO_YOUTUBE = 9, TYPE_VIDEO_VIMEO = 10, TYPE_EMBED_VIDEO = 11, TYPE_IFRAME = 12, TYPE_YOUTUBE_PLAYLIST = 13; var html5GalleryId = 0; $.fn.wonderplugingallery = function(options) { var Html5Gallery = function(container, options, id) { this.container = container; this.options = options; this.id = id; this.options.flashInstalled = false; try { if (new ActiveXObject("ShockwaveFlash.ShockwaveFlash")) this.options.flashInstalled = true } catch (e) { if (navigator.mimeTypes["application/x-shockwave-flash"]) this.options.flashInstalled = true } this.options.html5VideoSupported = !!document.createElement("video").canPlayType; this.options.isChrome = navigator.userAgent.match(/Chrome/i) != null; this.options.isFirefox = navigator.userAgent.match(/Firefox/i) != null; this.options.isOpera = navigator.userAgent.match(/Opera/i) != null || navigator.userAgent.match(/OPR\//i) != null; this.options.isSafari = navigator.userAgent.match(/Safari/i) != null; this.options.isIE11 = navigator.userAgent.match(/Trident\/7/) != null && navigator.userAgent.match(/rv:11/) != null; this.options.isIE = navigator.userAgent.match(/MSIE/i) != null && !this.options.isOpera; this.options.isIE10 = navigator.userAgent.match(/MSIE 10/i) != null && !this.options.isOpera; this.options.isIE9 = navigator.userAgent.match(/MSIE 9/i) != null && !this.options.isOpera; this.options.isIE8 = navigator.userAgent.match(/MSIE 8/i) != null && !this.options.isOpera; this.options.isIE7 = navigator.userAgent.match(/MSIE 7/i) != null && !this.options.isOpera; this.options.isIE6 = navigator.userAgent.match(/MSIE 6/i) != null && !this.options.isOpera; this.options.isIE678 = this.options.isIE6 || this.options.isIE7 || this.options.isIE8; this.options.isIE6789 = this.options.isIE6 || this.options.isIE7 || this.options.isIE8 || this.options.isIE9; this.options.isAndroid = navigator.userAgent.match(/Android/i) != null; this.options.isIPad = navigator.userAgent.match(/iPad/i) != null; this.options.isIPhone = navigator.userAgent.match(/iPod/i) != null || navigator.userAgent.match(/iPhone/i) != null; this.options.isIOS = this.options.isIPad || this.options.isIPhone; this.options.isMobile = this.options.isAndroid || this.options.isIPad || this.options.isIPhone; this.options.isIOSLess5 = this.options.isIPad && this.options.isIPhone && (navigator.userAgent.match(/OS 4/i) != null || navigator.userAgent.match(/OS 3/i) != null); this.options.supportCSSPositionFixed = !this.options.isIE6 && !this.options.isIOSLess5; this.isTouch = "ontouchstart" in window; this.eStart = this.isTouch ? "touchstart" : "mousedown"; this.eMove = this.isTouch ? "touchmove" : "mousemove"; this.eCancel = this.isTouch ? "touchcancel" : "mouseup"; this.eClick = "click"; var v = document.createElement("video"); this.options.canplaymp4 = v && v.canPlayType && v.canPlayType("video/mp4").replace(/no/, ""); this.slideshowTimeout = null; this.looptimes = 0; this.updateCarouselTimeout = null; this.disableupdatecarousel = false; this.hideTitleTimeout = null; this.hideToolboxTimeout = null; this.isHd = this.options.hddefault; this.isHTML5 = false; this.elemArray = []; $(".html5gallery-loading").hide(); this.container.children().hide(); this.container.css({ "display": "block", "position": "relative" }); if (this.options.googlefonts && this.options.googlefonts.length > 0) { var fontRef = "https://fonts.googleapis.com/css?family=" + this.options.googlefonts; var fontLink = document.createElement("link"); fontLink.setAttribute("rel", "stylesheet"); fontLink.setAttribute("type", "text/css"); fontLink.setAttribute("href", fontRef); document.getElementsByTagName("head")[0].appendChild(fontLink) } this.initData(this.processElemArray) }; Html5Gallery.prototype = { getParams: function() { var result = {}; var params = window.location.search.substring(1).split("&"); for (var i = 0; i < params.length; i++) { var value = params[i].split("="); if (value && value.length == 2) result[value[0].toLowerCase()] = unescape(value[1]) } return result }, init: function(instance) { if (instance.options.random) for (var i = instance.elemArray.length - 1; i > 0; i--) { var index = Math.floor(Math.random() * i); var t = instance.elemArray[i]; instance.elemArray[i] = instance.elemArray[index]; instance.elemArray[index] = t } instance.initYoutubeApi(); instance.options.showcarousel = (instance.elemArray.length > 1 || instance.options.showcarouselforsingle) && instance.options.showcarousel; instance.options.watermarkcode = ""; if (instance.options.fv) instance.options.watermarkcode = ""; else if (instance.options.watermarklink.length > 0) instance.options.watermarkcode = ""; var freeCss; if (instance.options.fv) freeCss = "display:none;visibility:hidden;position:absolute;top:10px;left:10px;width:180px;height:18px;line-height:18px;text-align:center;border-radius:5px;-moz-border-radius:5px;-webkit-border-radius:5px;background-color:#fff;color:#333;font-size:12px;font-family:Arial,Helvetica,sans-serif;"; else if (instance.options.watermark.length > 0) freeCss = "display:none;position:absolute;top:0px;left:0px;"; else freeCss = "display:none;"; instance.options.watermarkcode += "
"; if (instance.options.fv) instance.options.watermarkcode += instance.options.fvm; else if (instance.options.watermark.length > 0) instance.options.watermarkcode += ""; instance.options.watermarkcode += "
"; if (instance.options.fv || instance.options.watermarklink.length > 0) instance.options.watermarkcode += "
"; instance.createStyle(); instance.createMarkup(); instance.createImageToolbox(); if (instance.elemArray.length <= 0) return; instance.createSliderTimeout(); instance.createEvents(); instance.loadCarousel(); instance.savedElem = -1; instance.curElem = -1; instance.nextElem = -1; instance.prevElem = -1; instance.isPaused = !instance.options.autoslide; instance.isFullscreen = false; instance.isVideoPlaying = false; instance.showingPoster = false; instance.disableTouchSwipe = false; instance.createSocial(false); var params = instance.getParams(); var firstid = 0; if (params["html5galleryid"] && params["html5galleryid"] in instance.elemArray) firstid = params["html5galleryid"]; if (params["galleryshareid"] && params["galleryshareid"] in instance.elemArray) firstid = params["galleryshareid"]; instance.slideRun(firstid); if (instance.options.responsive) { instance.resizeGallery(); $(window).resize(function() { if (instance.options.isMobile && !instance.options.mobileresizeevent) { $(window).on("orientationchange", function() { instance.resizeGallery() }); return } instance.resizeGallery() }) } }, resizeGallery: function() { switch (this.options.skin) { case "vertical": case "showcase": this.resizeStyleVertical(); break; case "light": case "horizontal": case "darkness": case "gallery": default: this.resizeStyleDefault() } this.resizeImageToolbox() }, absoluteUrl: function(href) { var link = document.createElement("a"); link.href = href; return link.protocol + "//" + link.host + link.pathname + link.search + link.hash }, createSocial: function(isfullscreen) { if (this.options.initsocial) $("head").append(''); if (!this.options.showsocial) return; var instance = this; var styleCss = ".html5gallery-rotate { border-radius:50%; -webkit-transition:-webkit-transform .4s ease-in; transition: transform .4s ease-in; } .html5gallery-rotate:hover { -webkit-transform: rotate(360deg); transform: rotate(360deg); }"; $("head").append(""); var socialCode = "
'; if (this.options.showtwitter) socialCode += '
'; if (this.options.showpinterest) socialCode += '
'; socialCode += '
'; if (isfullscreen) $(".html5gallery-fullscreen-box-" + this.id, this.$fullscreen).append(socialCode); else { $(".html5gallery-box-" + this.id, this.$gallery).append(socialCode); if (this.options.socialmode == "mouseover") $(".html5gallery-box-" + this.id).hover(function() { $(".html5gallery-social-" + instance.id).fadeIn() }, function() { $(".html5gallery-social-" + instance.id).fadeOut() }) } $(".html5gallery-social-btn-" + this.id).click(function() { var shareUrl = window.location.href + (window.location.href.indexOf("?") < 0 ? "?" : "&") + "galleryshareid=" + instance.elemArray[instance.curElem][ELEM_ID]; var shareTitle = instance.elemArray[instance.curElem][ELEM_TITLE]; var shareMedia = instance.absoluteUrl(instance.elemArray[instance.curElem][ELEM_SRC]); var isVideo = instance.elemArray[instance.curElem][ELEM_TYPE] == TYPE_VIDEO_FLASH || instance.elemArray[instance.curElem][ELEM_TYPE] == TYPE_VIDEO_MP4 || instance.elemArray[instance.curElem][ELEM_TYPE] == TYPE_VIDEO_OGG || instance.elemArray[instance.curElem][ELEM_TYPE] == TYPE_VIDEO_WEBM || instance.elemArray[instance.curElem][ELEM_TYPE] == TYPE_VIDEO_YOUTUBE || instance.elemArray[instance.curElem][ELEM_TYPE] == TYPE_VIDEO_VIMEO || instance.elemArray[instance.curElem][ELEM_TYPE] == TYPE_EMBED_VIDEO; if (isVideo && instance.elemArray[instance.curElem][ELEM_POSTER]) shareMedia = instance.absoluteUrl(instance.elemArray[instance.curElem][ELEM_POSTER]); if ($(this).hasClass("html5gallery-social-facebook")) window.open("https://www.facebook.com/sharer/sharer.php?u=" + encodeURIComponent(shareUrl) + "&t=" + encodeURIComponent(shareTitle), "_blank"); else if ($(this).hasClass("html5gallery-social-twitter")) window.open("https://twitter.com/share?url=" + encodeURIComponent(shareUrl) + "&text=" + encodeURIComponent(shareTitle), "_blank"); else if ($(this).hasClass("html5gallery-social-pinterest")) window.open("https://pinterest.com/pin/create/bookmarklet/?media=" + encodeURIComponent(shareMedia) + "&url=" + encodeURIComponent(shareUrl) + "&description=" + encodeURIComponent(shareTitle) + "&is_video=" + (isVideo ? "true" : "false"), "_blank"); return false }) }, checkMK: function() { if (this.options.fv) { var item = $(".html5gallery-elem-" + this.id, this.container); var mklink = $('a[href="' + this.options.freelink + '"]', item); if (item.text().indexOf(this.options.fvm) < 0 || mklink.length < 0) item.append("
" + this.options.fvm + "
"); else { var mkdiv = mklink.find("div"); if (mklink.css("display") == "none" || mklink.css("visibility") == "hidden" || parseInt(mklink.css("font-size")) < 8 || mkdiv.css("display") == "none" || mkdiv.css("visibility") == "hidden" || parseInt(mkdiv.css("font-size")) < 8) { mklink.attr({ style: (mklink.attr("style") || "") + "display:block!important;visibility:hidden!important;font-size:12px!important;" }); mkdiv.attr({ style: mkdiv.attr("style") + "display:block!important;visibility:hidden!important;font-size:12px!important;" }) } } } }, initData: function(onSuccess) { this.elemArray = []; if (this.options.src && this.options.src.length > 0) { var mediaType = this.options.mediatype ? this.options.mediatype : this.checkType(this.options.src); this.elemArray.push(new Array(0, "", this.options.src, this.options.webm, this.options.ogg, "", "", this.options.title ? this.options.title : "", this.options.title ? this.options.title : "", mediaType, this.options.width, this.options.height, this.options.poster, this.options.hd, this.options.hdogg, this.options.hdwebm)); this.readTags(); onSuccess(this) } else if (this.options.xml && this.options.xml.length > 0) { if (this.options.xmlnocache) { this.options.xml += this.options.xml.indexOf("?") < 0 ? "?" : "&"; this.options.xml += Math.random() } var instance = this; $.ajax({ type: "GET", url: this.options.xml, dataType: "xml", success: function(xmldata) { $(xmldata).find("slide").each(function(index, value) { var title = $(this).find("title").text(); var information = $(this).find("description").text() ? $(this).find("description").text() : $(this).find("information").text(); if (!title) title = ""; if (!information) information = ""; var mediaType = $(this).find("mediatype").text() ? $(this).find("mediatype").text() : instance.checkType($(this).find("file").text()); instance.elemArray.push(new Array($(this).find("id").length ? $(this).find("id").text() : index, $(this).find("thumbnail").text(), $(this).find("file").text(), $(this).find("file-ogg").text(), $(this).find("file-webm").text(), $(this).find("link").text(), $(this).find("linktarget").text(), title, information, mediaType, $(this).find("width").length && !isNaN(parseInt($(this).find("width").text())) ? parseInt($(this).find("width").text()) : instance.options.width, $(this).find("height").length && !isNaN(parseInt($(this).find("height").text())) ? parseInt($(this).find("height").text()) : instance.options.height, $(this).find("poster").text(), $(this).find("hd").text(), $(this).find("hdogg").text(), $(this).find("hdwebm").text(), $(this).find("duration").text(), $(this).find("lightboxwidth").text(), $(this).find("lightboxheight").text(), $(this).find("youtubeapikey").text(), $(this).find("youtubeplaylistid").text(), $(this).find("youtubeplaylistmaxresults").text(), $(this).find("lightbox").text().toLowerCase() == "true")) }); instance.readTags(); onSuccess(instance) } }) } else if (this.options.remote && this.options.remote.length > 0) { var instance = this; $.getJSON(this.options.remote, function(data) { for (var i = 0; i < data.length; i++) { var mediaType = data[i].mediatype ? data[i].mediatype : instance.checkType(data[i].file); instance.elemArray.push(new Array(i, data[i].thumbnail, data[i].file, data[i].fileogg, data[i].filewebm, data[i].link, data[i].linktarget, data[i].title, data[i].description, mediaType, data[i].width && !isNaN(parseInt(data[i].width)) ? parseInt(data[i].width) : instance.options.width, data[i].height && !isNaN(parseInt(data[i].height)) ? parseInt(data[i].height) : instance.options.height, data[i].poster, data[i].hd, data[i].hdogg, data[i].hdwebm, data[i].duration, data[i].lightboxwidth, data[i].lightboxheight, data[i].youtubeapikey, data[i].youtubeplaylistid, data[i].youtubeplaylistmaxresults, data[i].lightbox)) } instance.readTags(); onSuccess(instance) }) } else if (this.options.youtubechannel) { var base = "https://gdata.youtube.com/feeds/api/videos?"; var params = { alt: "json", v: 2, "orderby": this.options.youtubechannel.orderby ? this.options.youtubechannel.orderby : "published", "start-index": this.options.youtubechannel["start-index"] ? this.options.youtubechannel["start-index"] : 1, "max-results": this.options.youtubechannel["max-results"] ? this.options.youtubechannel["max-results"] : 10 }; if (this.options.youtubechannel.author) params.author = this.options.youtubechannel.author; else if (this.options.youtubechannel.q) params.q = this.options.youtubechannel.q; base += $.param(params); var instance = this; $.getJSON(base, function(data) { if (data && data.feed && data.feed.entry) for (var i = 1; i < data.feed.entry.length; i++) instance.elemArray.push(new Array(i, "https://img.youtube.com/vi/" + data.feed.entry[i].media$group.yt$videoid.$t + "/0.jpg", data.feed.entry[i].media$group.media$player.url, null, null, null, null, data.feed.entry[i].media$group.media$title.$t, data.feed.entry[i].media$group.media$description.$t, TYPE_VIDEO_YOUTUBE, 640, 480, "https://img.youtube.com/vi/" + data.feed.entry[i].media$group.yt$videoid.$t + "/0.jpg", null, null, null, null)); instance.readTags(); onSuccess(instance) }) } else if (this.options.youtubeapikey && this.options.youtubeplaylistid) { var instance = this; this.getYouTubePlaylist(this.options.youtubeapikey, this.options.youtubeplaylistid, this.options.youtubeplaylistmaxresults, -1, function() { instance.readTags(); onSuccess(instance) }, this, null) } else { this.readTags(); onSuccess(this) } }, readTags: function() { var instance = this; var imagelist = $("img.html5galleryimg", this.container).length ? $("img.html5galleryimg", this.container) : $("img", this.container); imagelist.each(function(index, value) { var imgsrc = $(this).attr("src"); if (!imgsrc) imgsrc = $(this).get(0).src; var lazytags = instance.options.lazyloadtags.split(","); for (var i = 0; i < lazytags.length; i++) if ($(this).data(lazytags[i]) && $(this).data(lazytags[i]).length > 0) { imgsrc = $(this).data(lazytags[i]); break } var src = imgsrc; var title = $(this).data("title") ? $(this).data("title") : $(this).attr("alt"); var information = $(this).data("description") ? $(this).data("description") : $(this).data("information"); if (!title) title = ""; if (!information) information = ""; var width = instance.options.width; var height = instance.options.height; var duration = $(this).data("duration") ? $(this).data("duration") : 0; var videoOgg = null, videoWebm = null; var link = null, linktarget = null; var poster = null; var hd = null, hdogg = null, hdwebm = null; var lightboxwidth = null, lightboxheight = null; var youtubeapikey = null, youtubeplaylistid = null, youtubeplaylistmaxresults = null; var lightbox = false; if ($(this).parent().is("a")) { src = $(this).parent().attr("href"); videoOgg = $(this).parent().data("ogg"); videoWebm = $(this).parent().data("webm"); link = $(this).parent().data("link"); linktarget = $(this).parent().data("linktarget"); poster = $(this).parent().data("poster"); if (!isNaN($(this).parent().data("width"))) width = $(this).parent().data("width"); if (!isNaN($(this).parent().data("height"))) height = $(this).parent().data("height"); hd = $(this).parent().data("hd"); hdogg = $(this).parent().data("hdogg"); hdwebm = $(this).parent().data("hdwebm"); lightboxwidth = $(this).parent().data("lightboxwidth"); lightboxheight = $(this).parent().data("lightboxheight"); youtubeapikey = $(this).parent().data("youtubeapikey"); youtubeplaylistid = $(this).parent().data("youtubeplaylistid"); youtubeplaylistmaxresults = $(this).parent().data("youtubeplaylistmaxresults"); lightbox = $(this).parent().hasClass("html5gallerylightbox") } var mediaType = $(this).parent().data("mediatype") ? $(this).parent().data("mediatype") : instance.checkType(src); instance.elemArray.push(new Array(instance.elemArray.length, imgsrc, src, videoOgg, videoWebm, link, linktarget, title, information, mediaType, width, height, poster, hd, hdogg, hdwebm, duration, lightboxwidth, lightboxheight, youtubeapikey, youtubeplaylistid, youtubeplaylistmaxresults, lightbox)) }) }, getYouTubePlaylist: function(youtubeapikey, youtubeplaylistid, youtubeplaylistmaxresults, index, onsuccess, instance, pagetoken) { if (index >= 0) instance.elemArray.splice(index, 1); var youtube_url = "https://www.googleapis.com/youtube/v3/playlistItems?part=snippet&playlistId=" + youtubeplaylistid + "&key=" + youtubeapikey; if (youtubeplaylistmaxresults) if (youtubeplaylistmaxresults > 50) youtube_url += "&maxResults=50"; else youtube_url += "&maxResults=" + youtubeplaylistmaxresults; if (pagetoken) youtube_url += "&pageToken=" + pagetoken; var all_done = true; $.getJSON(youtube_url, function(data) { if (data && data.items) for (var i = 0; i < data.items.length; i++) { var video_id = data.items[i]["snippet"]["resourceId"]["videoId"]; var poster_image = "https://img.youtube.com/vi/" + video_id + "/0.jpg"; if (instance.options.youtubeplaylistusemaxres && data.items[i]["snippet"]["thumbnails"] && data.items[i]["snippet"]["thumbnails"]["maxres"]) poster_image = data.items[i]["snippet"]["thumbnails"]["maxres"]["url"]; var new_item = new Array(i, "https://img.youtube.com/vi/" + video_id + "/0.jpg", "https://www.youtube.com/embed/" + video_id, null, null, null, null, data.items[i]["snippet"]["title"], data.items[i]["snippet"]["description"], TYPE_VIDEO_YOUTUBE, 640, 480, poster_image, null, null, null, null); if (index >= 0) { instance.elemArray.splice(index, 0, new_item); index++ } else instance.elemArray.push(new_item) } if (data && data.nextPageToken && youtubeplaylistmaxresults && youtubeplaylistmaxresults > 50) { all_done = false; instance.getYouTubePlaylist(youtubeapikey, youtubeplaylistid, youtubeplaylistmaxresults - 50, index, onsuccess, instance, data.nextPageToken) } }).always(function() { if (all_done) onsuccess(instance) }) }, processElemArray: function(instance) { var found = false; for (var i = 0; i < instance.elemArray.length; i++) if (instance.elemArray[i][ELEM_TYPE] == TYPE_YOUTUBE_PLAYLIST) if (instance.elemArray[i][ELEM_YOUTUBEAPIKEY] && instance.elemArray[i][ELEM_YOUTUBEPLAYLISTID]) { found = true; break } if (found) instance.getYouTubePlaylist(instance.elemArray[i][ELEM_YOUTUBEAPIKEY], instance.elemArray[i][ELEM_YOUTUBEPLAYLISTID], instance.elemArray[i][ELEM_YOUTUBEPLAYLISTMAXRESULTS], i, instance.processElemArray, instance, null); else instance.init(instance) }, createMarkup: function() { this.$gallery = jQuery("" + "
" + "
" + "
" + "
" + "
" + "
" + "
" + "
" + "
" + "
" + "
" + "
" + "
" + "
" + "
" + "
" + "
" + "
" + "
" + "
" + "
" + "
" + "
" + "
" + "
" + "
" + "
" + "
" + "
" + "
" + "
" + "
" + "
"); this.$gallery.appendTo(this.container); if (!this.options.socialurlforeach) this.createSocialMedia(); if (this.options.googleanalyticsaccount && !window._gaq) { window._gaq = window._gaq || []; window._gaq.push(["_setAccount", this.options.googleanalyticsaccount]); window._gaq.push(["_trackPageview"]); $.getScript("https://ssl.google-analytics.com/ga.js") } }, createSocialMedia: function() { $(".html5gallery-viral-" + this.id, this.$gallery).empty(); var elemUrl = window.location.href; if (this.options.socialurlforeach) elemUrl += (window.location.href.indexOf("?") < 0 ? "?" : "&") + "html5galleryid=" + this.elemArray[this.curElem][ELEM_ID]; if (this.options.showsocialmedia && this.options.showfacebooklike) { var facebook = "
"; $(".html5gallery-viral-" + this.id, this.$gallery).append(facebook) } if (this.options.showsocialmedia && this.options.showtwitter) { var twitter = ""; $(".html5gallery-viral-" + this.id, this.$gallery).append(twitter); $.getScript("https://platform.twitter.com/widgets.js") } if (this.options.showsocialmedia && this.options.showgoogleplus) { var googlePlus = "
0) googlePlus += " data-href='" + this.options.googleplusurl + "'"; else googlePlus += " data-href='" + elemUrl + "'"; googlePlus += ">
"; $(".html5gallery-viral-" + this.id, this.$gallery).append(googlePlus); $.getScript("https://apis.google.com/js/plusone.js") } }, playGallery: function() { var instance = this; $(".html5gallery-play-" + instance.id, instance.$gallery).hide(); $(".html5gallery-pause-" + instance.id, instance.$gallery).show(); instance.isPaused = false; var slideshowinterval = instance.elemArray[instance.curElem][ELEM_DURATION] ? instance.elemArray[instance.curElem][ELEM_DURATION] : instance.options.slideshowinterval; instance.slideshowTimeout.setInterval(slideshowinterval); instance.slideshowTimeout.start(); $(".html5gallery-timer-" + instance.id, instance.$gallery).css({ width: 0 }) }, pauseGallery: function() { var instance = this; $(".html5gallery-play-" + instance.id, instance.$gallery).show(); $(".html5gallery-pause-" + instance.id, instance.$gallery).hide(); instance.isPaused = true; instance.slideshowTimeout.stop(); $(".html5gallery-timer-" + instance.id, instance.$gallery).css({ width: 0 }) }, createSliderTimeout: function() { var instance = this; instance.slideshowTimeout = new HTML5GalleryTimer(instance.options.slideshowinterval, function() { instance.slideRun(-1) }, instance.options.showtimer ? function(percent) { instance.updateTimer(percent) } : null); if (instance.options.pauseonmouseover) $(".html5gallery-elem-" + this.id, this.$gallery).hover(function() { if (!instance.isPaused) instance.slideshowTimeout.pause() }, function() { if (!instance.isPaused) instance.slideshowTimeout.resume(false) }) }, updateTimer: function(percent) { if (this.isFullscreen) { var w = Math.max(0, Math.floor($(".html5gallery-fullscreen-elem-wrapper-" + this.id, this.$fullscreen).width() * percent)); $(".html5gallery-fullscreen-timer-" + this.id, this.$fullscreen).css({ width: w + "px" }) } else { var w = Math.max(0, Math.floor($(".html5gallery-elem-" + this.id, this.$gallery).width() * percent)); $(".html5gallery-timer-" + this.id, this.$gallery).css({ width: w + "px" }) } }, createEvents: function() { var instance = this; $(".html5gallery-play-" + this.id, this.$gallery).click(function() { instance.playGallery() }); $(".html5gallery-pause-" + this.id, this.$gallery).click(function() { instance.pauseGallery() }); $(".html5gallery-lightbox-" + this.id, this.$gallery).click(function() { instance.goFullscreen() }); $(".html5gallery-left-" + this.id, this.$gallery).click(function() { instance.slideRun(-2, true) }); $(".html5gallery-right-" + this.id, this.$gallery).click(function() { instance.slideRun(-1, true) }); if (instance.options.enabletouchswipe) { var preventBrowser = instance.options.isAndroid && instance.options.enabletouchswipeonandroid ? true : false; $(".html5gallery-box-" + this.id, this.$gallery).touchSwipe({ preventWebBrowser: preventBrowser, swipeLeft: function() { if (!instance.disableTouchSwipe) instance.slideRun(-1, true) }, swipeRight: function() { if (!instance.disableTouchSwipe) instance.slideRun(-2, true) } }) } var isTouch = "ontouchstart" in window; if (!isTouch || !instance.options.disablehovereventontouch) { $(".html5gallery-box-" + this.id, this.$gallery).mousemove(function() { if (instance.options.imagetoolboxmode == "mouseover") { var type = instance.elemArray[instance.curElem][ELEM_TYPE]; if (instance.options.showimagetoolbox == "always" || instance.options.showimagetoolbox == "image" && type == TYPE_IMAGE) instance.showimagetoolbox(type, true) } if (instance.options.titleoverlay && instance.options.titleautohide && !(instance.options.hidetitlewhenvideoisplaying && instance.isVideoPlaying)) { $(".html5gallery-title-" + instance.id, instance.$gallery).show(); clearTimeout(instance.hideTitleTimeout); instance.hideTitleTimeout = setTimeout(function() { $(".html5gallery-title-" + instance.id, instance.$gallery).fadeOut() }, 3E3) } }); $(".html5gallery-box-" + this.id, this.$gallery).hover(function() { instance.onSlideshowOver(); if (instance.options.imagetoolboxmode == "mouseover") { var type = instance.elemArray[instance.curElem][ELEM_TYPE]; if (instance.options.showimagetoolbox == "always" || instance.options.showimagetoolbox == "image" && type == TYPE_IMAGE) instance.showimagetoolbox(type) } if (instance.options.titleoverlay && instance.options.titleautohide && !(instance.options.hidetitlewhenvideoisplaying && instance.isVideoPlaying)) { $(".html5gallery-title-" + instance.id, instance.$gallery).fadeIn(); clearTimeout(instance.hideTitleTimeout); instance.hideTitleTimeout = setTimeout(function() { $(".html5gallery-title-" + instance.id, instance.$gallery).fadeOut() }, 3E3) } }, function() { if (instance.options.imagetoolboxmode == "mouseover") instance.hideimagetoolbox(); if (instance.options.titleoverlay && instance.options.titleautohide) { $(".html5gallery-title-" + instance.id, instance.$gallery).fadeOut(); clearTimeout(instance.hideTitleTimeout) } }) } $(".html5gallery-car-left-" + this.id, this.$gallery).css({ "background-position": "-" + String(this.options.carouselarrowwidth * 2) + "px 0px", cursor: "" }); $(".html5gallery-car-left-" + this.id, this.$gallery).data("disabled", true); $(".html5gallery-car-right-" + this.id, this.$gallery).css({ "background-position": "0px 0px" }); $(".html5gallery-car-left-" + this.id, this.$gallery).click(function() { if (!$(this).data("disabled")) { instance.disableupdatecarousel = true; instance.updateCarouselTimeout = setTimeout(function() { instance.enableUpdateCarousel() }, instance.options.updatecarouselinterval); instance.carouselPrev() } }); $(".html5gallery-car-right-" + this.id, this.$gallery).click(function() { if (!$(this).data("disabled")) { instance.disableupdatecarousel = true; instance.updateCarouselTimeout = setTimeout(function() { instance.enableUpdateCarousel() }, instance.options.updatecarouselinterval); instance.carouselNext() } }); $(".html5gallery-car-slider-" + this.id, this.$gallery).on("drag", function(event, data) { instance.disableupdatecarousel = true; instance.updateCarouselTimeout = setTimeout(function() { instance.enableUpdateCarousel() }, instance.options.updatecarouselinterval); instance.carouselSliderDrag(event, data) }); $(".html5gallery-car-slider-bar-" + this.id, this.$gallery).click(function(event) { instance.disableupdatecarousel = true; instance.updateCarouselTimeout = setTimeout(function() { instance.enableUpdateCarousel() }, instance.options.updatecarouselinterval); instance.carouselBarClicked(event) }); if (this.options.skin == "vertical" || this.options.skin == "showcase") $(".html5gallery-car-list-" + this.id, this.$gallery).on("DOMMouseScroll mousewheel wheel", function(event) { event.preventDefault(); var maxM = -1 * (instance.elemArray.length * (instance.options.thumbheight + instance.options.thumbgap) - instance.options.thumbMaskHeight); var dis = 0; if (event.originalEvent) if (event.originalEvent.wheelDeltaY) dis = event.originalEvent.wheelDeltaY; else if (event.originalEvent.detail) dis = event.originalEvent.detail * -40; else if (event.originalEvent.wheelDelta) dis = event.originalEvent.wheelDelta; else if (event.originalEvent.deltaY) dis = event.originalEvent.deltaY; var m1 = parseInt($(".html5gallery-thumbs-" + instance.id, instance.$gallery).css("marginTop")) + dis; if (m1 > 0) m1 = 0; if (m1 < maxM) m1 = maxM; var pos = (instance.options.carouselSliderMax - instance.options.carouselSliderMin) * m1 / maxM; $(".html5gallery-car-slider-" + instance.id, instance.$gallery).css({ top: pos }); $(".html5gallery-thumbs-" + instance.id, instance.$gallery).css({ marginTop: m1 }) }); if (!("ontouchstart" in window)) { $(".html5gallery-car-left-" + this.id, this.$gallery).hover(function() { if (!$(this).data("disabled")) $(this).css({ "background-position": "-" + instance.options.carouselarrowwidth + "px 0px" }) }, function() { if (!$(this).data("disabled")) $(this).css({ "background-position": "0px 0px" }) }); $(".html5gallery-car-right-" + this.id, this.$gallery).hover(function() { if (!$(this).data("disabled")) $(this).css({ "background-position": "-" + instance.options.carouselarrowwidth + "px 0px" }) }, function() { if (!$(this).data("disabled")) $(this).css({ "background-position": "0px 0px" }) }) } }, createStyle: function() { switch (this.options.skin) { case "vertical": case "showcase": this.createStyleVertical(); break; case "light": case "horizontal": case "darkness": case "gallery": case "mediapage": default: this.createStyleDefault() } }, resizeStyleVertical: function() { if (!this.container.parent() || !this.container.parent().width()) return; this.options.containerWidth = this.container.parent().width(); this.options.totalWidth = this.options.containerWidth; if (this.options.showcarousel) if (this.options.carouselposition == "bottom") this.options.carouselWidth = this.options.width; else this.options.carouselWidth = this.options.thumbwidth; if (this.options.carouselposition == "bottom") this.options.width = this.options.totalWidth - 2 * this.options.padding; else { this.options.width = this.options.totalWidth - 2 * this.options.padding; if (this.options.carouselWidth + this.options.carouselmargin > 0) this.options.width -= this.options.carouselWidth + this.options.carouselmargin } if (this.options.responsivefullscreen && this.container.parent().height() > 0) { this.options.containerHeight = this.container.parent().height(); this.options.totalHeight = this.options.containerHeight; if (this.options.carouselposition == "bottom") this.options.height = this.options.totalHeight - (this.options.headerHeight + 2 * this.options.padding + this.options.carouselheight); else this.options.height = this.options.totalHeight - (this.options.headerHeight + 2 * this.options.padding) } else { this.options.height = Math.round(this.options.width * this.options.originalHeight / this.options.originalWidth); if (this.options.carouselposition == "bottom") this.options.totalHeight = this.options.height + this.options.headerHeight + 2 * this.options.padding + this.options.carouselmargin + this.options.carouselHeight; else this.options.totalHeight = this.options.height + this.options.headerHeight + 2 * this.options.padding; this.options.containerHeight = this.options.totalHeight } this.container.css({ "width": this.options.containerWidth, "height": this.options.containerHeight }); this.options.boxWidth = this.options.width; this.options.boxHeight = this.options.height + this.options.headerHeight; if (this.options.slideshadow) this.options.boxWidth += 8; if (this.options.showcarousel) if (this.options.carouselposition == "bottom") { this.options.carouselWidth = this.options.width; this.options.carouselHeight = this.options.carouselheight; this.options.carouselLeft = this.options.padding; this.options.carouselTop = this.options.height + this.options.headerHeight + 2 * this.options.padding; this.options.carAreaLength = this.options.carouselHeight; this.options.carouselSlider = Math.floor(this.options.carAreaLength / (this.options.thumbheight + this.options.thumbgap)) < this.elemArray.length; this.options.thumbwidth = this.options.width; if (this.options.carouselSlider) this.options.thumbwidth -= 20; $(".html5gallery-car-mask-" + this.id).css({ width: this.options.thumbwidth + "px" }); $(".html5gallery-tn-" + this.id).css({ width: this.options.thumbwidth + "px" }); $(".html5gallery-tn-selected-" + this.id).css({ width: this.options.thumbwidth + "px" }); $(".html5gallery-car-slider-bar-" + this.id).css({ left: String(this.options.thumbwidth + 6) + "px" }); if (this.options.isMobile) { $(".html5gallery-car-left-" + this.id).css({ left: String(this.options.thumbwidth + 5) + "px" }); $(".html5gallery-car-right-" + this.id).css({ left: String(this.options.thumbwidth + 5) + "px" }) } else $(".html5gallery-car-slider-" + this.id).css({ left: String(this.options.thumbwidth + 5) + "px" }); var titleWidth = this.options.thumbwidth - 3 * this.options.thumbmargin; if (this.options.thumbshowimage) titleWidth -= this.options.thumbimagewidth + 2 * this.options.thumbimageborder; if (this.options.thumbshowtitle) $("head").append("") } else { this.options.carouselWidth = this.options.thumbwidth; this.options.carouselHeight = this.options.height + this.options.headerHeight; this.options.carTop = 0; this.options.carBottom = 0; this.options.carAreaLength = this.options.carouselHeight - this.options.carTop - this.options.carBottom; this.options.carouselSlider = Math.floor(this.options.carAreaLength / (this.options.thumbheight + this.options.thumbgap)) < this.elemArray.length; if (this.options.carouselSlider) { this.options.carouselWidth += 20; this.options.width -= 20; this.options.boxWidth = this.options.width; if (this.options.slideshadow) this.options.boxWidth += 8 } if (this.options.carouselposition == "left") { this.options.boxLeft = this.options.padding + this.options.carouselWidth + this.options.carouselmargin; this.options.carouselLeft = this.options.padding } else this.options.carouselLeft = this.options.padding + this.options.width + this.options.carouselmargin; this.options.carouselTop = this.options.padding } $(".html5gallery-container-" + this.id).css({ width: this.options.totalWidth + "px", height: this.options.totalHeight + "px" }); $(".html5gallery-box-" + this.id).css({ width: this.options.boxWidth + "px", height: this.options.boxHeight + "px" }); var type = this.elemArray[this.curElem][ELEM_TYPE]; if (type == TYPE_IMAGE || this.showingPoster) { var imageWidth = this.showingPoster ? this.elemArray[this.curElem][ELEM_POSTERWIDTH] : this.elemArray[this.curElem][ELEM_WIDTH]; var imageHeight = this.showingPoster ? this.elemArray[this.curElem][ELEM_POSTERHEIGHT] : this.elemArray[this.curElem][ELEM_HEIGHT]; var scale; if (this.isFullscreen) { var fullW = this.elemArray[this.curElem][ELEM_LIGHTBOXWIDTH] ? Math.min(this.elemArray[this.curElem][ELEM_LIGHTBOXWIDTH], this.fullscreenWidth) : this.fullscreenWidth; var fullH = this.elemArray[this.curElem][ELEM_LIGHTBOXHEIGHT] ? Math.min(this.elemArray[this.curElem][ELEM_LIGHTBOXHEIGHT], this.fullscreenHeight) : this.fullscreenHeight; scale = Math.min(fullW / imageWidth, fullH / imageHeight); scale = scale > 1 ? 1 : scale } else if (this.options.resizemode == "fill") scale = Math.max(this.options.width / imageWidth, this.options.height / imageHeight); else scale = Math.min(this.options.width / imageWidth, this.options.height / imageHeight); var w = Math.round(scale * imageWidth); var h = Math.round(scale * imageHeight); var w1 = this.isFullscreen ? w : this.options.width; var h1 = this.isFullscreen ? h : this.options.height; var l = Math.round(w1 / 2 - w / 2); var t = Math.round(h1 / 2 - h / 2); if (this.isFullscreen) this.adjustFullscreen(w1, h1, true); $(".html5gallery-elem-" + this.id).css({ "width": w1 + "px", "height": h1 + "px" }); $(".html5gallery-elem-img-" + this.id).css({ width: w1 + "px", height: h1 + "px" }); $(".html5gallery-elem-image-" + this.id).css({ width: w + "px", height: h + "px", top: t + "px", left: l + "px" }) } else if (type == TYPE_VIDEO_FLASH || type == TYPE_VIDEO_MP4 || type == TYPE_VIDEO_OGG || type == TYPE_VIDEO_WEBM || type == TYPE_VIDEO_YOUTUBE || type == TYPE_VIDEO_VIMEO || type == TYPE_EMBED_VIDEO) { var dataW = this.elemArray[this.curElem][ELEM_WIDTH]; var dataH = this.elemArray[this.curElem][ELEM_HEIGHT]; var w1, h1; if (this.isFullscreen) { var fullW = this.elemArray[this.curElem][ELEM_LIGHTBOXWIDTH] ? Math.min(this.elemArray[this.curElem][ELEM_LIGHTBOXWIDTH], this.fullscreenWidth) : this.fullscreenWidth; var fullH = this.elemArray[this.curElem][ELEM_LIGHTBOXHEIGHT] ? Math.min(this.elemArray[this.curElem][ELEM_LIGHTBOXHEIGHT], this.fullscreenHeight) : this.fullscreenHeight; scale = Math.min(fullW / dataW, fullH / dataH); scale = scale > 1 ? 1 : scale; w1 = Math.round(scale * dataW); h1 = Math.round(scale * dataH); this.adjustFullscreen(w1, h1, true) } else { w1 = this.options.width; h1 = this.options.height } $(".html5gallery-elem-" + this.id).css({ "width": w1 + "px", "height": h1 + "px" }); $(".html5gallery-elem-video-" + this.id).css({ "width": w1 + "px", "height": h1 + "px" }); $(".html5gallery-elem-video-container-" + this.id).css({ "width": w1 + "px", "height": h1 + "px" }); var h2 = this.options.isIPhone ? h1 - 48 : h1; $(".html5gallery-elem-video-container-" + this.id).find("video").css({ "width": w1 + "px", "height": h2 + "px" }); $("#html5gallery-elem-video-" + this.id).css({ "width": w1 + "px", "height": h1 + "px" }); $("#html5gallery-elem-video-" + this.id).attr("width", w1); $("#html5gallery-elem-video-" + this.id).attr("height", h1); $(".html5gallery-elem-video-" + this.id).find("iframe").attr("width", w1); $(".html5gallery-elem-video-" + this.id).find("iframe").attr("height", h1); $("#html5gallery-elem-video-" + this.id).find("iframe").attr("width", w1); $("#html5gallery-elem-video-" + this.id).find("iframe").attr("height", h1) } else if (type == TYPE_SWF); var titleTop = 0; var socialTop = 0; if (this.options.headerpos == "bottom") { titleTop = this.options.titleoverlay ? this.options.height - this.options.titleheight : this.options.height; socialTop = this.options.titleoverlay ? this.options.height : this.options.height + this.options.titleheight } var titleWidth = this.options.slideshadow ? this.options.boxWidth - 8 : this.options.boxWidth; $(".html5gallery-title-" + this.id).css({ width: titleWidth + "px" }); if (!this.options.titleoverlay) $(".html5gallery-title-" + this.id).css({ top: titleTop + "px" }); $(".html5gallery-viral-" + this.id).css({ top: socialTop + "px" }); $(".html5gallery-timer-" + this.id).css({ top: String(this.options.elemTop + this.options.height - 2) + "px" }); if (this.options.showcarousel) { $(".html5gallery-car-" + this.id).css({ width: this.options.carouselWidth + "px", height: this.options.carouselHeight + "px", top: this.options.carouselTop + "px", left: this.options.carouselLeft + "px", top: this.options.carouselTop + "px" }); $(".html5gallery-car-list-" + this.id).css({ top: this.options.carTop + "px", height: String(this.options.carAreaLength) + "px", width: this.options.carouselWidth + "px" }); this.options.thumbShowNum = Math.floor(this.options.carAreaLength / (this.options.thumbheight + this.options.thumbgap)); if (this.options.thumbShowNum < 1) this.options.thumbShowNum = 1; this.options.thumbMaskHeight = this.options.thumbShowNum * this.options.thumbheight + (this.options.thumbShowNum - 1) * this.options.thumbgap; this.options.thumbTotalHeight = this.elemArray.length * this.options.thumbheight + (this.elemArray.length - 1) * this.options.thumbgap; if (this.options.carouselSlider) { this.options.carouselSliderMin = 0; this.options.carouselSliderMax = this.options.thumbMaskHeight - 54; $(".html5gallery-car-slider-bar-" + this.id).css({ height: this.options.thumbMaskHeight + "px" }); $(".html5gallery-car-slider-bar-middle-" + this.id).css({ height: String(this.options.thumbMaskHeight - 32) + "px" }); if (this.options.isMobile) $(".html5gallery-car-right-" + this.id).css({ top: String(this.options.thumbMaskHeight - 35) + "px" }); $(".html5gallery-car-slider-bar-" + this.id).css({ display: "block" }); $(".html5gallery-car-left-" + this.id).css({ display: "block" }); $(".html5gallery-car-right-" + this.id).css({ display: "block" }); $(".html5gallery-car-slider-" + this.id).css({ display: "block" }) } var maskTop = 0; if (this.options.carouselNavButton) maskTop = Math.round(this.options.carAreaLength / 2 - this.options.thumbMaskHeight / 2); $(".html5gallery-car-mask-" + this.id).css({ top: maskTop + "px", height: this.options.thumbMaskHeight + "px" }); this.carouselHighlight(this.curElem) } }, createStyleVertical: function() { if (this.options.thumbshowtitle) this.options.thumbimagewidth = this.options.thumbheight - 2 * this.options.thumbimageborder - 4; else this.options.thumbimagewidth = this.options.thumbwidth - 2 * this.options.thumbimageborder - 4; this.options.thumbimageheight = this.options.thumbheight - 2 * this.options.thumbimageborder - 4; if (!this.options.showtitle) this.options.titleheight = 0; if (!this.options.showsocialmedia || !this.options.showfacebooklike && !this.options.showtwitter && !this.options.showgoogleplus) this.options.socialheight = 0; this.options.headerHeight = this.options.titleoverlay ? this.options.socialheight : this.options.titleheight + this.options.socialheight; this.options.boxWidth = this.options.width; this.options.boxHeight = this.options.height + this.options.headerHeight; this.options.boxLeft = this.options.padding; this.options.boxTop = this.options.padding; if (this.options.slideshadow) this.options.boxWidth += 8; if (this.options.showcarousel) if (this.options.carouselposition == "bottom") { this.options.carouselWidth = this.options.width; this.options.carouselHeight = this.options.carouselheight; this.options.carouselLeft = this.options.padding; this.options.carouselTop = this.options.height + this.options.headerHeight + 2 * this.options.padding; this.options.carAreaLength = this.options.carouselHeight; this.options.carouselSlider = Math.floor(this.options.carAreaLength / (this.options.thumbheight + this.options.thumbgap)) < this.elemArray.length; this.options.thumbwidth = this.options.width; if (this.options.carouselSlider) this.options.thumbwidth -= 20 } else { this.options.carouselWidth = this.options.thumbwidth; this.options.carouselHeight = this.options.height + this.options.headerHeight; this.options.carTop = 0; this.options.carBottom = 0; this.options.carAreaLength = this.options.carouselHeight - this.options.carTop - this.options.carBottom; this.options.carouselSlider = Math.floor(this.options.carAreaLength / (this.options.thumbheight + this.options.thumbgap)) < this.elemArray.length; if (this.options.carouselSlider) this.options.carouselWidth += 20; if (this.options.carouselposition == "left") { this.options.boxLeft = this.options.padding + this.options.carouselWidth + this.options.carouselmargin; this.options.carouselLeft = this.options.padding } else this.options.carouselLeft = this.options.padding + this.options.width + this.options.carouselmargin; this.options.carouselTop = this.options.padding } else { this.options.carouselWidth = 0; this.options.carouselHeight = 0; this.options.carouselLeft = 0; this.options.carouselTop = 0; this.options.carouselmargin = 0 } if (this.options.carouselposition == "bottom") { this.options.totalWidth = this.options.width + 2 * this.options.padding; this.options.totalHeight = this.options.height + this.options.headerHeight + 2 * this.options.padding + this.options.carouselmargin + this.options.carouselHeight } else { this.options.totalWidth = this.options.width + this.options.carouselWidth + this.options.carouselmargin + 2 * this.options.padding; this.options.totalHeight = this.options.height + this.options.headerHeight + 2 * this.options.padding } this.options.containerWidth = this.options.totalWidth; this.options.containerHeight = this.options.totalHeight; if (this.options.responsive) { this.options.originalWidth = this.options.width; this.options.originalHeight = this.options.height; this.container.css({ "max-width": "100%" }) } else this.container.css({ "width": this.options.containerWidth, "height": this.options.containerHeight }); var titleTop = 0; var socialTop = 0; this.options.elemTop = 0; if (this.options.headerpos == "top") { socialTop = 0; titleTop = this.options.socialheight; this.options.elemTop = this.options.headerHeight } else if (this.options.headerpos == "bottom") { this.options.elemTop = 0; titleTop = this.options.titleoverlay ? this.options.height - this.options.titleheight : this.options.height; socialTop = this.options.titleoverlay ? this.options.height : this.options.height + this.options.titleheight } else if (this.options.headerpos == "bottomoutside") if (this.options.showcarousel) titleTop = this.options.height + this.options.carouselHeight; else titleTop = this.options.height; var styleCss = " .html5gallery-container-" + this.id + " { display:block; position:absolute; left:0px; top:0px; width:" + this.options.totalWidth + "px; height:" + this.options.totalHeight + "px; " + (!this.options.bgimage ? "" : "background:url('" + this.options.bgimage + "') center top;") + " background-color:" + this.options.bgcolor + ";}"; if (this.options.galleryshadow) styleCss += " .html5gallery-container-" + this.id + " { -moz-box-shadow: 0px 2px 5px #aaa; -webkit-box-shadow: 0px 2px 5px #aaa; box-shadow: 0px 2px 5px #aaa;}"; styleCss += " .html5gallery-box-" + this.id + " {display:block; position:absolute; text-align:center; left:" + this.options.boxLeft + "px; top:" + this.options.boxTop + "px; width:" + this.options.boxWidth + "px; height:" + this.options.boxHeight + "px; }"; var viralPaddingTop = Math.round(this.options.socialheight / 2 - 12); styleCss += " .html5gallery-title-text-" + this.id + " " + this.options.titlecss + " .html5gallery-title-text-" + this.id + " " + this.options.titlecsslink + " .html5gallery-error-" + this.id + " " + this.options.errorcss; styleCss += " .html5gallery-description-text-" + this.id + " " + this.options.descriptioncss + " .html5gallery-description-text-" + this.id + " " + this.options.descriptioncsslink; styleCss += " .html5gallery-fullscreen-title-" + this.id + "" + this.options.lightboxtitlecss + " .html5gallery-fullscreen-title-" + this.id + "" + this.options.lightboxtitlelinkcss; styleCss += " .html5gallery-fullscreen-description-" + this.id + "" + this.options.lightboxdescriptioncss + " .html5gallery-fullscreen-description-" + this.id + "" + this.options.lightboxdescriptionlinkcss; styleCss += " .html5gallery-viral-" + this.id + " {display:block; overflow:hidden; position:absolute; text-align:left; top:" + socialTop + "px; left:0px; width:" + this.options.boxWidth + "px; height:" + this.options.socialheight + "px; padding-top:" + viralPaddingTop + "px;}"; var titleWidth = this.options.slideshadow ? this.options.boxWidth - 8 : this.options.boxWidth; styleCss += " .html5gallery-title-" + this.id + " {display:" + (this.options.titleoverlay && this.options.titleautohide ? "none" : "block") + "; overflow:hidden; position:absolute; left:0px; width:" + titleWidth + "px; "; if (!this.options.titleoverlay) styleCss += "top:" + titleTop + "px; height:" + this.options.titleheight + "px; }"; else if (this.options.headerpos == "top") styleCss += "top:0px; height:auto; }"; else styleCss += "bottom:0px; height:auto; }"; styleCss += " .html5gallery-timer-" + this.id + " {display:block; position:absolute; top:" + String(this.options.elemTop + this.options.height - 2) + "px; left:0px; width:0px; height:2px; background-color:#ccc; filter:alpha(opacity=60); opacity:0.6; }"; styleCss += " .html5gallery-elem-" + this.id + " {display:block; overflow:hidden; position:absolute; top:" + this.options.elemTop + "px; left:0px; width:" + this.options.boxWidth + "px; height:" + this.options.height + "px;}"; if (this.options.isIE7 || this.options.isIE6) { styleCss += " .html5gallery-loading-" + this.id + " {display:none; }"; styleCss += " .html5gallery-loading-center-" + this.id + " {display:none; }" } else { styleCss += " .html5gallery-loading-" + this.id + " {display:block; position:absolute; top:4px; right:4px; width:100%; height:100%; background:url('" + this.options.skinfolder + "loading.gif') no-repeat top right;}"; styleCss += " .html5gallery-loading-center-" + this.id + " {display:block; position:absolute; top:0px; left:0px; width:100%; height:100%; background:url('" + this.options.skinfolder + "loading_center.gif') no-repeat center center;}" } if (this.options.borderradius > 0) styleCss += " .html5gallery-elem-" + this.id + " { overflow:hidden; border-radius:" + this.options.borderradius + "px; -moz-border-radius:" + this.options.borderradius + "px; -webkit-border-radius:" + this.options.borderradius + "px;}"; if (this.options.slideshadow) { styleCss += " .html5gallery-title-" + this.id + " { padding:4px;}"; styleCss += " .html5gallery-timer-" + this.id + " { margin:4px;}"; styleCss += " .html5gallery-elem-" + this.id + " { overflow:hidden; padding:4px; -moz-box-shadow: 0px 2px 5px #aaa; -webkit-box-shadow: 0px 2px 5px #aaa; box-shadow: 0px 2px 5px #aaa;}" } if (this.options.showcarousel) { styleCss += " .html5gallery-car-" + this.id + " { position:absolute; display:block; overflow:hidden; width:" + this.options.carouselWidth + "px; height:" + this.options.carouselHeight + "px; left:" + this.options.carouselLeft + "px; top:" + this.options.carouselTop + "px; }"; styleCss += " .html5gallery-car-list-" + this.id + " { position:absolute; display:block; overflow:hidden; top:" + this.options.carTop + "px; height:" + String(this.options.carAreaLength) + "px; left:0px; width:" + this.options.carouselWidth + "px; " + "}"; styleCss += ".html5gallery-thumbs-" + this.id + " {margin-top:0px; height:" + String(this.elemArray.length * (this.options.thumbheight + this.options.thumbgap)) + "px;}"; this.options.thumbShowNum = Math.floor(this.options.carAreaLength / (this.options.thumbheight + this.options.thumbgap)); if (this.options.thumbShowNum < 1) this.options.thumbShowNum = 1; this.options.thumbMaskHeight = this.options.thumbShowNum * this.options.thumbheight + (this.options.thumbShowNum - 1) * this.options.thumbgap; this.options.thumbTotalHeight = this.elemArray.length * this.options.thumbheight + (this.elemArray.length - 1) * this.options.thumbgap; this.options.carouselSliderMin = 0; this.options.carouselSliderMax = this.options.thumbMaskHeight - 54; styleCss += " .html5gallery-car-slider-bar-" + this.id + " { position:absolute; display:" + (this.options.carouselSlider ? "block" : "none") + "; overflow:hidden; top:0px; height:" + this.options.thumbMaskHeight + "px; left:" + String(this.options.thumbwidth + 6) + "px; width:14px;}"; styleCss += " .html5gallery-car-slider-bar-top-" + this.id + " { position:absolute; display:block; top:0px; left:0px; width:14px; height:16px; background:url('" + this.options.skinfolder + "bartop.png')}"; styleCss += " .html5gallery-car-slider-bar-middle-" + this.id + " { position:absolute; display:block; top:16px; left:0px; width:14px; height:" + String(this.options.thumbMaskHeight - 32) + "px; background:url('" + this.options.skinfolder + "bar.png')}"; styleCss += " .html5gallery-car-slider-bar-bottom-" + this.id + " { position:absolute; display:block; bottom:0px; left:0px; width:14px; height:16px; background:url('" + this.options.skinfolder + "barbottom.png')}"; if (this.options.isMobile) styleCss += " .html5gallery-car-left-" + this.id + " { position:absolute; display:" + (this.options.carouselSlider ? "block" : "none") + "; cursor:pointer; overflow:hidden; width:16px; height:35px; left:" + String(this.options.thumbwidth + 5) + "px; top:0px; background:url('" + this.options.skinfolder + "slidertop.png')} " + " .html5gallery-car-right-" + this.id + " { position:absolute; display:" + (this.options.carouselSlider ? "block" : "none") + "; cursor:pointer; overflow:hidden; width:16px; height:35px; left:" + String(this.options.thumbwidth + 5) + "px; top:" + String(this.options.thumbMaskHeight - 35) + "px; background:url('" + this.options.skinfolder + "sliderbottom.png')} "; else styleCss += " .html5gallery-car-slider-" + this.id + " { position:absolute; display:" + (this.options.carouselSlider ? "block" : "none") + "; overflow:hidden; cursor:pointer; top:0px; height:54px; left:" + String(this.options.thumbwidth + 5) + "px; width:16px; background:url('" + this.options.skinfolder + "slider.png');}"; var maskTop = 0; if (this.options.carouselNavButton) maskTop = Math.round(this.options.carAreaLength / 2 - this.options.thumbMaskHeight / 2); styleCss += " .html5gallery-car-mask-" + this.id + " { position:absolute; display:block; overflow:hidden; top:" + maskTop + "px; height:" + this.options.thumbMaskHeight + "px; left:0px; width:" + this.options.thumbwidth + "px;} "; var tabHeight = this.options.thumbheight; if (!this.options.isIE) tabHeight = this.options.thumbheight - 2; styleCss += " .html5gallery-tn-" + this.id + " { display:block; margin-bottom:" + this.options.thumbgap + "px; text-align:center; cursor:pointer; width:" + this.options.thumbwidth + "px;height:" + tabHeight + "px;overflow:hidden;"; if (this.options.carouselbgtransparent) styleCss += "background-color:transparent;"; else { if (!this.options.isIE) styleCss += "border-top:1px solid " + this.options.carouseltopborder + "; border-bottom:1px solid " + this.options.carouselbottomborder + ";"; styleCss += "background-color: " + this.options.carouselbgcolorend + "; " + "background: " + this.options.carouselbgcolorend + " -webkit-gradient(linear, left top, left bottom, from(" + this.options.carouselbgcolorstart + "), to(" + this.options.carouselbgcolorend + ")) no-repeat; " + "background: " + this.options.carouselbgcolorend + " -moz-linear-gradient(top, " + this.options.carouselbgcolorstart + ", " + this.options.carouselbgcolorend + ") no-repeat; " + "filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=" + this.options.carouselbgcolorstart + ", endColorstr=" + this.options.carouselbgcolorend + ") no-repeat; " + "-ms-filter: 'progid:DXImageTransform.Microsoft.gradient(startColorstr=" + this.options.carouselbgcolorstart + ", endColorstr=" + this.options.carouselbgcolorend + ")' no-repeat;" } if (this.options.carouselbgimage) styleCss += "background:url('" + this.options.skinfolder + this.options.carouselbgimage + "') center top;"; styleCss += "}"; styleCss += " .html5gallery-tn-selected-" + this.id + " { display:block; margin-bottom:" + this.options.thumbgap + "px;text-align:center; cursor:pointer; width:" + this.options.thumbwidth + "px;height:" + tabHeight + "px;overflow:hidden;"; if (this.options.carouselbgtransparent) styleCss += "background-color:transparent;"; else { if (!this.options.isIE) styleCss += "border-top:1px solid " + this.options.carouselhighlighttopborder + "; border-bottom:1px solid " + this.options.carouselhighlightbottomborder + ";"; styleCss += "background-color: " + this.options.carouselhighlightbgcolorend + "; " + "background: " + this.options.carouselhighlightbgcolorend + " -webkit-gradient(linear, left top, left bottom, from(" + this.options.carouselhighlightbgcolorstart + "), to(" + this.options.carouselhighlightbgcolorend + ")) no-repeat; " + "background: " + this.options.carouselhighlightbgcolorend + " -moz-linear-gradient(top, " + this.options.carouselhighlightbgcolorstart + ", " + this.options.carouselhighlightbgcolorend + ") no-repeat; " + "filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=" + this.options.carouselhighlightbgcolorstart + ", endColorstr=" + this.options.carouselhighlightbgcolorend + ") no-repeat; " + "-ms-filter: 'progid:DXImageTransform.Microsoft.gradient(startColorstr=" + this.options.carouselhighlightbgcolorstart + ", endColorstr=" + this.options.carouselhighlightbgcolorend + ")' no-repeat;" } if (this.options.carouselbgimage) styleCss += "background:url('" + this.options.skinfolder + this.options.carouselbgimage + "') center top;"; styleCss += "}"; styleCss += " .html5gallery-tn-selected-" + this.id + " .html5gallery-tn-img-" + this.id + " {background-color:" + this.options.thumbimagebordercolor + ";}" + " .html5gallery-tn-" + this.id + " { filter:alpha(opacity=" + Math.round(this.options.thumbopacity * 100) + "); opacity:" + this.options.thumbopacity + "; } " + " .html5gallery-tn-selected-" + this.id + " { filter:alpha(opacity=100); opacity:1; } "; var titleWidth = this.options.thumbwidth - 3 * this.options.thumbmargin; if (this.options.thumbshowimage) { titleWidth -= this.options.thumbimagewidth + 2 * this.options.thumbimageborder; var imgLeft; if (this.options.thumbshowtitle) imgLeft = this.options.thumbmargin; else imgLeft = this.options.thumbwidth / 2 - (this.options.thumbimagewidth + 2 * this.options.thumbimageborder) / 2; var imgTop = Math.round((this.options.thumbheight - 2) / 2 - (this.options.thumbimageheight + 2 * this.options.thumbimageborder) / 2); styleCss += " .html5gallery-tn-img-" + this.id + " {display:block; overflow:hidden; float:left; margin-top:" + imgTop + "px; margin-left:" + imgLeft + "px; width:" + String(this.options.thumbimagewidth + 2 * this.options.thumbimageborder) + "px;height:" + String(this.options.thumbimageheight + 2 * this.options.thumbimageborder) + "px;}" } else styleCss += " .html5gallery-tn-img-" + this.id + " {display:none;}"; if (this.options.thumbshowtitle) { styleCss += " .html5gallery-tn-title-" + this.id + " {display:block; overflow:hidden; float:left; margin-top:0px; margin-left:" + this.options.thumbmargin + "px; width:" + titleWidth + "px;height:" + String(this.options.thumbheight - 2) + "px;" + (this.options.thumbshowdescription ? "" : "line-height:" + String(this.options.thumbheight - 2) + "px;") + "}"; styleCss += " .html5gallery-tn-title-" + this.id + this.options.thumbtitlecss; styleCss += " .html5gallery-tn-description-" + this.id + this.options.thumbdescriptioncss } else { styleCss += " .html5gallery-tn-title-" + this.id + " {display:none;}"; styleCss += " .html5gallery-tn-description-" + this.id + " {display:none;}" } this.carouselHighlight = function(index) { $("#html5gallery-tn-" + this.id + "-" + index, this.$gallery).removeClass("html5gallery-tn-" + this.id).addClass("html5gallery-tn-selected-" + this.id); if (this.options.thumbShowNum >= this.elemArray.length) return; var pos = Math.floor(index / this.options.thumbShowNum) * this.options.thumbShowNum * (this.options.thumbheight + this.options.thumbgap); if (pos >= this.options.thumbTotalHeight - this.options.thumbMaskHeight) pos = this.options.thumbTotalHeight - this.options.thumbMaskHeight; var m1 = pos / (this.elemArray.length * (this.options.thumbheight + this.options.thumbgap) - this.options.thumbMaskHeight); m1 = m1 * (this.options.carouselSliderMax - this.options.carouselSliderMin); $(".html5gallery-car-slider-" + this.id, this.$gallery).stop(true).animate({ top: m1 }, 300); $(".html5gallery-thumbs-" + this.id, this.$gallery).stop(true).animate({ marginTop: -1 * pos }, 300); this.updateCarouseButtons(-pos) }; this.carouselBarClicked = function(event) { var $thumbContainer = $(".html5gallery-thumbs-" + this.id, this.$gallery); var pos; if (event.pageY > $(".html5gallery-car-slider-" + this.id, this.$gallery).offset().top) { pos = -1 * parseInt($thumbContainer.css("margin-top")) + this.options.thumbShowNum * (this.options.thumbheight + this.options.thumbgap); if (pos >= this.options.thumbTotalHeight - this.options.thumbMaskHeight) pos = this.options.thumbTotalHeight - this.options.thumbMaskHeight } else { pos = -1 * parseInt($thumbContainer.css("margin-top")) - this.options.thumbShowNum * (this.options.thumbheight + this.options.thumbgap); if (pos < 0) pos = 0 } $thumbContainer.stop(true).animate({ marginTop: -pos }, 500); this.updateCarouseButtons(-pos); var m1 = this.elemArray.length * (this.options.thumbheight + this.options.thumbgap) - this.options.thumbMaskHeight; pos = pos * (this.options.carouselSliderMax - this.options.carouselSliderMin) / m1; if (pos < this.options.carouselSliderMin) pos = this.options.carouselSliderMin; if (pos > this.options.carouselSliderMax) pos = this.options.carouselSliderMax; $(".html5gallery-car-slider-" + this.id, this.$gallery).stop(true).animate({ top: pos }, 500) }; this.carouselSliderDrag = function(event, data) { var pos = data.offsetY - $(".html5gallery-car-slider-bar-" + this.id, this.$gallery).offset().top; if (pos < this.options.carouselSliderMin) pos = this.options.carouselSliderMin; if (pos > this.options.carouselSliderMax) pos = this.options.carouselSliderMax; $(".html5gallery-car-slider-" + this.id, this.$gallery).css({ top: pos }); var m1 = this.elemArray.length * (this.options.thumbheight + this.options.thumbgap) - this.options.thumbMaskHeight; m1 = m1 * pos / (this.options.carouselSliderMax - this.options.carouselSliderMin); m1 = Math.round(m1 / (this.options.thumbheight + this.options.thumbgap)); m1 = -1 * m1 * (this.options.thumbheight + this.options.thumbgap); $(".html5gallery-thumbs-" + this.id, this.$gallery).stop(true).animate({ marginTop: m1 }, 300) }; this.carouselPrev = function() { var $thumbContainer = $(".html5gallery-thumbs-" + this.id, this.$gallery); if (parseInt($thumbContainer.css("margin-top")) == 0) return; else { var pos = -1 * parseInt($thumbContainer.css("margin-top")) - this.options.thumbShowNum * (this.options.thumbheight + this.options.thumbgap); if (pos < 0) pos = 0; $thumbContainer.animate({ marginTop: -pos }, 500, this.options.carouseleasing); this.updateCarouseButtons(-pos) } }; this.carouselNext = function() { var $thumbContainer = $(".html5gallery-thumbs-" + this.id, this.$gallery); if (parseInt($thumbContainer.css("margin-top")) == -(this.options.thumbTotalHeight - this.options.thumbMaskHeight)) return; else { var pos = -1 * parseInt($thumbContainer.css("margin-top")) + this.options.thumbShowNum * (this.options.thumbheight + this.options.thumbgap); if (pos >= this.options.thumbTotalHeight - this.options.thumbMaskHeight) pos = this.options.thumbTotalHeight - this.options.thumbMaskHeight; $thumbContainer.animate({ marginTop: -pos }, 500, this.options.carouseleasing); this.updateCarouseButtons(-pos) } }; this.updateCarouseButtons = function(pos) { var $leftButton = $(".html5gallery-car-left-" + this.id, this.$gallery); var $rightButton = $(".html5gallery-car-right-" + this.id, this.$gallery); var rightMost = -1 * (this.options.thumbTotalHeight - this.options.thumbMaskHeight); if (pos == 0) { $leftButton.css({ "background-position": "-" + String(this.options.carouselarrowwidth * 2) + "px 0px", cursor: "" }); $leftButton.data("disabled", true) } else if ($leftButton.data("disabled")) { $leftButton.css({ "background-position": "0px 0px", cursor: "pointer" }); $leftButton.data("disabled", false) } if (pos == rightMost) { $rightButton.css({ "background-position": "-" + String(this.options.carouselarrowwidth * 2) + "px 0px", cursor: "" }); $rightButton.data("disabled", true) } else if ($rightButton.data("disabled")) { $rightButton.css({ "background-position": "0px 0px", cursor: "pointer" }); $rightButton.data("disabled", false) } } } else styleCss += " .html5gallery-car-" + this.id + " { display:none; }"; styleCss += ".html5gallery-container-" + this.id + " div {box-sizing:content-box;}"; $("head").append("") }, resizeImageToolbox: function() { if (this.options.imagetoolboxstyle != "center") { var buttonT = Math.round((this.options.headerpos == "bottom" || this.options.headerpos == "bottomoutside" ? 0 : this.options.headerHeight) + this.options.height / 2 - 24); var buttonB = buttonT + Math.round(this.options.height / 2) - 32; var buttonR = this.options.boxWidth - 48; var buttonR1 = buttonR; var buttonR2 = this.options.showfullscreenbutton ? buttonR1 - 48 : buttonR1; $(".html5gallery-play-" + this.id).css({ "top": buttonB + "px", "left": buttonR2 + "px" }); $(".html5gallery-pause-" + this.id).css({ "top": buttonB + "px", "left": buttonR2 + "px" }); $(".html5gallery-left-" + this.id).css({ "top": buttonT + "px" }); $(".html5gallery-right-" + this.id).css({ "top": buttonT + "px", "left": buttonR1 + "px" }); $(".html5gallery-lightbox-" + this.id).css({ "top": buttonB + "px", "left": buttonR1 + "px" }) } }, createImageToolbox: function() { if (this.elemArray.length <= 1) this.options.showplaybutton = this.options.showprevbutton = this.options.shownextbutton = false; if (this.options.showimagetoolbox != "never") { var styleCss; if (this.options.imagetoolboxstyle == "center") { var toolboxH = 40; styleCss = " .html5gallery-toolbox-" + this.id + " {display:" + (this.options.imagetoolboxmode == "show" ? "block" : "none") + "; overflow:hidden; position:relative; margin:0px auto; text-align:center; height:" + toolboxH + "px;}"; styleCss += " .html5gallery-toolbox-bg-" + this.id + " {display:block; left:0px; top:0px; width:100%; height:100%; position:absolute; filter:alpha(opacity=60); opacity:0.6; background-color:#222222; }"; styleCss += " .html5gallery-toolbox-buttons-" + this.id + " {display:block; margin:0px auto; height:100%;}"; styleCss += " .html5gallery-play-" + this.id + " { position:relative; float:left; display:" + (this.options.imagetoolboxmode == "show" ? "block" : "none") + "; cursor:pointer; overflow:hidden; width:32px; height:32px; margin-left:2px; margin-right:2px; margin-top:" + Math.round(toolboxH / 2 - 16) + "px; background:url('" + this.options.skinfolder + "play.png') no-repeat top left; } "; styleCss += " .html5gallery-pause-" + this.id + " { position:relative; float:left; display:" + (this.options.imagetoolboxmode == "show" ? "block" : "none") + "; cursor:pointer; overflow:hidden; width:32px; height:32px; margin-left:2px; margin-right:2px; margin-top:" + Math.round(toolboxH / 2 - 16) + "px; background:url('" + this.options.skinfolder + "pause.png') no-repeat top left; } "; styleCss += " .html5gallery-left-" + this.id + " { position:relative; float:left; display:" + (this.options.imagetoolboxmode == "show" ? "block" : "none") + "; cursor:pointer; overflow:hidden; width:32px; height:32px; margin-left:2px; margin-right:2px; margin-top:" + Math.round(toolboxH / 2 - 16) + "px; background:url('" + this.options.skinfolder + "prev.png') no-repeat top left; } "; styleCss += " .html5gallery-right-" + this.id + " { position:relative; float:left; display:" + (this.options.imagetoolboxmode == "show" ? "block" : "none") + "; cursor:pointer; overflow:hidden; width:32px; height:32px; margin-left:2px; margin-right:2px; margin-top:" + Math.round(toolboxH / 2 - 16) + "px; background:url('" + this.options.skinfolder + "next.png') no-repeat top left; } "; styleCss += " .html5gallery-lightbox-" + this.id + " {position:relative; float:left; display:" + (this.options.imagetoolboxmode == "show" ? "block" : "none") + "; cursor:pointer; overflow:hidden; width:32px; height:32px; margin-left:2px; margin-right:2px; margin-top:" + Math.round(toolboxH / 2 - 16) + "px; background:url('" + this.options.skinfolder + "lightbox.png') no-repeat top left; } " } else { var buttonT = Math.round((this.options.headerpos == "bottom" ? 0 : this.options.headerHeight) + this.options.height / 2 - 24); var buttonB = buttonT + Math.round(this.options.height / 2) - 32; var buttonR = this.options.width - 54; var buttonR1 = buttonR; var buttonR2 = this.options.showfullscreenbutton ? buttonR1 - 48 : buttonR1; styleCss = " .html5gallery-toolbox-" + this.id + " {display:" + (this.options.imagetoolboxmode == "show" ? "block" : "none") + ";}"; styleCss += " .html5gallery-toolbox-bg-" + this.id + " {display:none;}"; styleCss += " .html5gallery-toolbox-buttons-" + this.id + " {display:block;}"; styleCss += " .html5gallery-play-" + this.id + " { position:absolute; display:" + (this.options.imagetoolboxmode == "show" ? "block" : "none") + "; cursor:pointer; top:" + buttonB + "px; left:" + buttonR2 + "px; width:48px; height:48px; background:url('" + this.options.skinfolder + "side_play.png') no-repeat top left;} "; styleCss += " .html5gallery-pause-" + this.id + " { position:absolute; display:" + (this.options.imagetoolboxmode == "show" ? "block" : "none") + "; cursor:pointer; top:" + buttonB + "px; left:" + buttonR2 + "px; width:48px; height:48px; background:url('" + this.options.skinfolder + "side_pause.png') no-repeat top left;} "; styleCss += " .html5gallery-left-" + this.id + " { position:absolute; display:" + (this.options.imagetoolboxmode == "show" ? "block" : "none") + "; cursor:pointer; top:" + buttonT + "px; left:0px; width:48px; height:48px; background:url('" + this.options.skinfolder + "side_prev.png') no-repeat center center;} "; styleCss += " .html5gallery-right-" + this.id + " { position:absolute; display:" + (this.options.imagetoolboxmode == "show" ? "block" : "none") + "; cursor:pointer; top:" + buttonT + "px; left:" + buttonR1 + "px; width:48px; height:48px; background:url('" + this.options.skinfolder + "side_next.png') no-repeat center center;} "; styleCss += " .html5gallery-lightbox-" + this.id + " {position:absolute; display:" + (this.options.imagetoolboxmode == "show" ? "block" : "none") + "; cursor:pointer; top:" + buttonB + "px; left:" + buttonR1 + "px; width:48px; height:48px; background:url('" + this.options.skinfolder + "side_lightbox.png') no-repeat top left;} " } $(".html5gallery-play-" + this.id, this.$gallery).hover(function() { $(this).css({ "background-position": "right top" }) }, function() { $(this).css({ "background-position": "left top" }) }); $(".html5gallery-pause-" + this.id, this.$gallery).hover(function() { $(this).css({ "background-position": "right top" }) }, function() { $(this).css({ "background-position": "left top" }) }); $(".html5gallery-left-" + this.id, this.$gallery).hover(function() { $(this).css({ "background-position": "right top" }) }, function() { $(this).css({ "background-position": "left top" }) }); $(".html5gallery-right-" + this.id, this.$gallery).hover(function() { $(this).css({ "background-position": "right top" }) }, function() { $(this).css({ "background-position": "left top" }) }); $(".html5gallery-lightbox-" + this.id, this.$gallery).hover(function() { $(this).css({ "background-position": "right top" }) }, function() { $(this).css({ "background-position": "left top" }) }); $("head").append("") } this.showimagetoolbox = function(type, noeffect) { if (!this.options.showplaybutton && !this.options.showprevbutton && !this.options.shownextbutton && !this.options.showfullscreenbutton) return; var instance = this; clearTimeout(instance.hideToolboxTimeout); instance.hideToolboxTimeout = setTimeout(function() { instance.hideimagetoolbox() }, 3E3); if (this.options.imagetoolboxstyle == "center") { var toolboxT = Math.round((this.options.headerpos == "bottom" ? 0 : this.options.headerHeight) + this.options.height / 2); if (type == TYPE_VIDEO_MP4 || type == TYPE_VIDEO_OGG || type == TYPE_VIDEO_WEBM || type == TYPE_VIDEO_YOUTUBE || type == TYPE_VIDEO_VIMEO || type == TYPE_EMBED_VIDEO) toolboxT += 45; $(".html5gallery-toolbox-" + this.id, this.$gallery).css({ "top": toolboxT }); var toolboxW = 0; if (this.options.showplaybutton && (type == TYPE_IMAGE || this.options.showplaypausefullscreenforall && (!this.options.hideplaypausefullscreenwhenvideoisplaying || !this.isVideoPlaying))) { toolboxW += 36; if (this.isPaused) { $(".html5gallery-play-" + this.id, this.$gallery).show(); $(".html5gallery-pause-" + this.id, this.$gallery).hide() } else { $(".html5gallery-play-" + this.id, this.$gallery).hide(); $(".html5gallery-pause-" + this.id, this.$gallery).show() } } else { $(".html5gallery-play-" + this.id, this.$gallery).hide(); $(".html5gallery-pause-" + this.id, this.$gallery).hide() } if (this.options.showprevbutton) { toolboxW += 36; $(".html5gallery-left-" + this.id, this.$gallery).show() } else $(".html5gallery-left-" + this.id, this.$gallery).hide(); if (this.options.shownextbutton) { toolboxW += 36; $(".html5gallery-right-" + this.id, this.$gallery).show() } else $(".html5gallery-right-" + this.id, this.$gallery).hide(); if (this.options.showfullscreenbutton && (type == TYPE_IMAGE || this.options.showplaypausefullscreenforall && (!this.options.hideplaypausefullscreenwhenvideoisplaying || !this.isVideoPlaying))) { toolboxW += 36; $(".html5gallery-lightbox-" + this.id, this.$gallery).show() } else $(".html5gallery-lightbox-" + this.id, this.$gallery).hide(); $(".html5gallery-toolbox-" + this.id, this.$gallery).css({ width: toolboxW + 16 }); $(".html5gallery-toolbox-buttons-" + this.id, this.$gallery).css({ width: toolboxW }) } else { if (this.options.showplaybutton && (type == TYPE_IMAGE || this.options.showplaypausefullscreenforall && (!this.options.hideplaypausefullscreenwhenvideoisplaying || !this.isVideoPlaying))) if (this.isPaused) { $(".html5gallery-play-" + this.id, this.$gallery).show(); $(".html5gallery-pause-" + this.id, this.$gallery).hide() } else { $(".html5gallery-play-" + this.id, this.$gallery).hide(); $(".html5gallery-pause-" + this.id, this.$gallery).show() } else { $(".html5gallery-play-" + this.id, this.$gallery).hide(); $(".html5gallery-pause-" + this.id, this.$gallery).hide() } if (this.options.showprevbutton) $(".html5gallery-left-" + this.id, this.$gallery).show(); else $(".html5gallery-left-" + this.id, this.$gallery).hide(); if (this.options.shownextbutton) $(".html5gallery-right-" + this.id, this.$gallery).show(); else $(".html5gallery-right-" + this.id, this.$gallery).hide(); if (this.options.showfullscreenbutton && (type == TYPE_IMAGE || this.options.showplaypausefullscreenforall && (!this.options.hideplaypausefullscreenwhenvideoisplaying || !this.isVideoPlaying))) $(".html5gallery-lightbox-" + this.id, this.$gallery).show(); else $(".html5gallery-lightbox-" + this.id, this.$gallery).hide() } if (this.options.isIE678 || noeffect) $(".html5gallery-toolbox-" + this.id, this.$gallery).show(); else $(".html5gallery-toolbox-" + this.id, this.$gallery).fadeIn() }; this.hideimagetoolbox = function() { if (this.options.imagetoolboxmode == "show") return; clearTimeout(this.hideToolboxTimeout); if (this.options.isIE678) $(".html5gallery-toolbox-" + this.id, this.$gallery).hide(); else $(".html5gallery-toolbox-" + this.id, this.$gallery).fadeOut() } }, resizeStyleDefault: function() { if (!this.container.parent() || !this.container.parent().width()) return; this.options.containerWidth = this.container.parent().width(); this.options.totalWidth = this.options.containerWidth; this.options.width = this.options.totalWidth - 2 * this.options.padding; if (this.options.titlesmallscreen) { var fullW = $(window).width(); if (fullW < this.options.titlesmallscreenwidth) this.options.titleheight = this.options.titleheightsmallscreen; else this.options.titleheight = this.options.titleheightlargescreen; this.options.headerHeight = this.options.titleoverlay ? this.options.socialheight : this.options.titleheight + this.options.socialheight } if (this.options.showcarousel) { this.options.carouselHeight = this.options.thumbheight + 2 * this.options.thumbmargin; if (this.options.carouselmultirows) if (this.options.thumbresponsive == "samecolumn") { this.options.carouselcolumn = this.options.thumbcolumns; if (this.options.thumbcolumnsresponsive) { var fullW = $(window).width(); if (fullW < this.options.thumbsmallsize) this.options.carouselcolumn = this.options.thumbsmallcolumns; else if (fullW < this.options.thumbmediumsize) this.options.carouselcolumn = this.options.thumbmediumcolumns } this.options.thumbwidth = Math.min((this.options.width - this.options.thumbgap * (this.options.carouselcolumn - 1)) / this.options.carouselcolumn); this.options.thumbheight = this.options.thumbwidth * this.options.thumboriginalheight / this.options.thumboriginalwidth; this.options.thumbimagewidth = this.options.thumbwidth - 2 * this.options.thumbimageborder; this.options.thumbimageheight = this.options.thumbheight - 2 * this.options.thumbimageborder; if (this.options.thumbshowtitle) this.options.thumbheight += this.options.thumbtitleheight; this.options.carouselHeight = Math.ceil(this.elemArray.length / this.options.carouselcolumn) * (this.options.thumbheight + this.options.thumbrowgap) } else { if (this.options.thumbcolumnsresponsive) { var fullW = $(window).width(); if (fullW < this.options.thumbsmallsize) { this.options.thumbwidth = this.options.thumbsmallwidth; this.options.thumbheight = this.options.thumbsmallheight } else if (fullW < this.options.thumbmediumsize) { this.options.thumbwidth = this.options.thumbmediumwidth; this.options.thumbheight = this.options.thumbmediumheight } else { this.options.thumbwidth = this.options.thumboriginalwidth; this.options.thumbheight = this.options.thumboriginalheight } this.options.thumbimagewidth = this.options.thumbwidth - 2 * this.options.thumbimageborder; this.options.thumbimageheight = this.options.thumbheight - 2 * this.options.thumbimageborder; if (this.options.thumbshowtitle) this.options.thumbheight += this.options.thumbtitleheight } this.options.carouselcolumn = Math.floor(this.options.width / (this.options.thumbwidth + this.options.thumbgap)); if (this.options.carouselcolumn < 1) this.options.carouselcolumn = 1; this.options.carouselHeight = Math.ceil(this.elemArray.length / this.options.carouselcolumn) * (this.options.thumbheight + this.options.thumbrowgap) } else if (this.options.thumbcolumnsresponsive) { var fullW = $(window).width(); if (fullW < this.options.thumbsmallsize) { this.options.thumbwidth = this.options.thumbsmallwidth; this.options.thumbheight = this.options.thumbsmallheight } else if (fullW < this.options.thumbmediumsize) { this.options.thumbwidth = this.options.thumbmediumwidth; this.options.thumbheight = this.options.thumbmediumheight } else { this.options.thumbwidth = this.options.thumboriginalwidth; this.options.thumbheight = this.options.thumboriginalheight } this.options.thumbimagewidth = this.options.thumbwidth - 2 * this.options.thumbimageborder; this.options.thumbimageheight = this.options.thumbheight - 2 * this.options.thumbimageborder; if (this.options.thumbshowtitle) this.options.thumbheight += this.options.thumbtitleheight } } if (this.options.responsivefullscreen && this.container.parent().height() > 0) { this.options.containerHeight = this.container.parent().height(); this.options.totalHeight = this.options.containerHeight; this.options.height = this.options.totalHeight - (this.options.headerHeight + 2 * this.options.padding); if (this.options.carouselHeight + this.options.carouselmargin > 0) this.options.height -= this.options.carouselHeight + this.options.carouselmargin } else { this.options.height = Math.round(this.options.width * this.options.originalHeight / this.options.originalWidth); this.options.totalHeight = this.options.height + this.options.carouselHeight + this.options.carouselmargin + this.options.headerHeight + 2 * this.options.padding; this.options.containerHeight = this.options.totalHeight } this.container.css({ "width": this.options.containerWidth, "height": this.options.containerHeight }); this.options.boxWidth = this.options.width; if (this.options.headerpos == "bottomoutside") this.options.boxHeight = this.options.height; else this.options.boxHeight = this.options.height + this.options.headerHeight; if (this.options.slideshadow) this.options.boxWidth += 8; if (this.options.showcarousel) { this.options.carouselWidth = this.options.width; this.options.carouselLeft = this.options.padding; this.options.carouselTop = this.options.padding + this.options.boxHeight + this.options.carouselmargin } $(".html5gallery-container-" + this.id).css({ width: this.options.totalWidth + "px", height: this.options.totalHeight + "px" }); $(".html5gallery-box-" + this.id).css({ width: this.options.boxWidth + "px", height: this.options.boxHeight + "px" }); var type = this.elemArray[this.curElem][ELEM_TYPE]; if (type == TYPE_IMAGE || this.showingPoster) { var imageWidth = this.showingPoster ? this.elemArray[this.curElem][ELEM_POSTERWIDTH] : this.elemArray[this.curElem][ELEM_WIDTH]; var imageHeight = this.showingPoster ? this.elemArray[this.curElem][ELEM_POSTERHEIGHT] : this.elemArray[this.curElem][ELEM_HEIGHT]; var scale; if (this.isFullscreen) { var fullW = this.elemArray[this.curElem][ELEM_LIGHTBOXWIDTH] ? Math.min(this.elemArray[this.curElem][ELEM_LIGHTBOXWIDTH], this.fullscreenWidth) : this.fullscreenWidth; var fullH = this.elemArray[this.curElem][ELEM_LIGHTBOXHEIGHT] ? Math.min(this.elemArray[this.curElem][ELEM_LIGHTBOXHEIGHT], this.fullscreenHeight) : this.fullscreenHeight; scale = Math.min(fullW / imageWidth, fullH / imageHeight); scale = scale > 1 ? 1 : scale } else if (this.options.resizemode == "fill") scale = Math.max(this.options.width / imageWidth, this.options.height / imageHeight); else scale = Math.min(this.options.width / imageWidth, this.options.height / imageHeight); var w = Math.round(scale * imageWidth); var h = Math.round(scale * imageHeight); var w1 = this.isFullscreen ? w : this.options.width; var h1 = this.isFullscreen ? h : this.options.height; var l = Math.round(w1 / 2 - w / 2); var t = Math.round(h1 / 2 - h / 2); if (this.isFullscreen) this.adjustFullscreen(w1, h1, true); $(".html5gallery-elem-" + this.id).css({ "width": w1 + "px", "height": h1 + "px" }); $(".html5gallery-elem-img-" + this.id).css({ width: w1 + "px", height: h1 + "px" }); $(".html5gallery-elem-image-" + this.id).css({ width: w + "px", height: h + "px", top: t + "px", left: l + "px" }) } else if (type == TYPE_VIDEO_FLASH || type == TYPE_VIDEO_MP4 || type == TYPE_VIDEO_OGG || type == TYPE_VIDEO_WEBM || type == TYPE_VIDEO_YOUTUBE || type == TYPE_VIDEO_VIMEO || type == TYPE_EMBED_VIDEO) { var dataW = this.elemArray[this.curElem][ELEM_WIDTH]; var dataH = this.elemArray[this.curElem][ELEM_HEIGHT]; var w1, h1; if (this.isFullscreen) { var fullW = this.elemArray[this.curElem][ELEM_LIGHTBOXWIDTH] ? Math.min(this.elemArray[this.curElem][ELEM_LIGHTBOXWIDTH], this.fullscreenWidth) : this.fullscreenWidth; var fullH = this.elemArray[this.curElem][ELEM_LIGHTBOXHEIGHT] ? Math.min(this.elemArray[this.curElem][ELEM_LIGHTBOXHEIGHT], this.fullscreenHeight) : this.fullscreenHeight; scale = Math.min(fullW / dataW, fullH / dataH); scale = scale > 1 ? 1 : scale; w1 = Math.round(scale * dataW); h1 = Math.round(scale * dataH); this.adjustFullscreen(w1, h1, true) } else { w1 = this.options.width; h1 = this.options.height } $(".html5gallery-elem-" + this.id).css({ "width": w1 + "px", "height": h1 + "px" }); $(".html5gallery-elem-video-" + this.id).css({ "width": w1 + "px", "height": h1 + "px" }); $(".html5gallery-elem-video-container-" + this.id).css({ "width": w1 + "px", "height": h1 + "px" }); var h2 = this.options.isIPhone ? h1 - 48 : h1; $(".html5gallery-elem-video-container-" + this.id).find("video").css({ "width": w1 + "px", "height": h2 + "px" }); $("#html5gallery-elem-video-" + this.id).css({ "width": w1 + "px", "height": h1 + "px" }); $("#html5gallery-elem-video-" + this.id).attr("width", w1); $("#html5gallery-elem-video-" + this.id).attr("height", h1); $(".html5gallery-elem-video-" + this.id).find("iframe").attr("width", w1); $(".html5gallery-elem-video-" + this.id).find("iframe").attr("height", h1); $("#html5gallery-elem-video-" + this.id).find("iframe").attr("width", w1); $("#html5gallery-elem-video-" + this.id).find("iframe").attr("height", h1) } else if (type == TYPE_SWF); var titleTop = 0; var socialTop = 0; if (this.options.headerpos == "bottom") { titleTop = this.options.titleoverlay ? this.options.height - this.options.titleheight : this.options.height; socialTop = this.options.titleoverlay ? this.options.height : this.options.height + this.options.titleheight } else if (this.options.headerpos == "bottomoutside") if (this.options.showcarousel) titleTop = this.options.height + this.options.carouselHeight; else titleTop = this.options.height; var titleWidth = this.options.slideshadow ? this.options.boxWidth - 8 : this.options.boxWidth; $(".html5gallery-title-" + this.id).css({ width: titleWidth + "px" }); if (!this.options.titleoverlay) $(".html5gallery-title-" + this.id).css({ top: titleTop + "px" }); $(".html5gallery-viral-" + this.id).css({ top: socialTop + "px" }); $(".html5gallery-timer-" + this.id).css({ top: String(this.options.elemTop + this.options.height - 2) + "px" }); if (this.options.showcarousel) { $(".html5gallery-car-" + this.id).css({ width: this.options.width + "px", top: this.options.carouselTop + "px" }); var carLeft = 4; var carRight = 4; $(".html5gallery-car-list-" + this.id).css({ width: String(this.options.width - carLeft - carRight) + "px" }); this.options.carouselNavButton = false; if (Math.floor((this.options.width - carLeft - carRight) / (this.options.thumbwidth + this.options.thumbgap)) < this.elemArray.length) this.options.carouselNavButton = true; var carButtonW = this.options.carouselNavButton ? this.options.carouselarrowwidth * 2 + 8 : 0; $(".html5gallery-car-left-" + this.id).css({ display: this.options.carouselNavButton ? "block" : "none" }); $(".html5gallery-car-right-" + this.id).css({ display: this.options.carouselNavButton ? "block" : "none" }); this.options.thumbShowNum = Math.floor((this.options.width - carLeft - carRight - carButtonW) / (this.options.thumbwidth + this.options.thumbgap)); if (this.options.thumbShowNum < 1) this.options.thumbShowNum = 1; this.options.thumbMaskWidth = this.options.thumbShowNum * this.options.thumbwidth + this.options.thumbShowNum * this.options.thumbgap; this.options.thumbTotalWidth = this.elemArray.length * this.options.thumbwidth + (this.elemArray.length - 1) * this.options.thumbgap; var marginL = 0; if (this.options.carouselmultirows) if (this.options.thumbresponsive == "samecolumn") { $(".html5gallery-thumbs-" + this.id).css({ "margin-left": "0px", width: String((this.options.thumbwidth + this.options.thumbgap) * this.options.carouselcolumn) + "px" }); $(".html5gallery-tn-" + this.id).css({ width: this.options.thumbwidth + "px", height: this.options.thumbheight + "px" }); $(".html5gallery-tn-selected-" + this.id).css({ width: this.options.thumbwidth + "px", height: this.options.thumbheight + "px" }); $(".html5gallery-tn-img-" + this.id).css({ width: String(this.options.thumbimagewidth + 2 * this.options.thumbimageborder) + "px", height: String(this.options.thumbimageheight + 2 * this.options.thumbimageborder) + "px" }); $(".html5gallery-tn-image-" + this.id).parent().css({ width: this.options.thumbimagewidth + "px", height: this.options.thumbimageheight + "px" }); var w = "100%"; var h = "auto"; var originalwidth = $(".html5gallery-tn-image-" + this.id).data("originalwidth"); var originalheight = $(".html5gallery-tn-image-" + this.id).data("originalheight"); if (originalwidth > 0 && originalheight > 0) { var scale = Math.max(this.options.thumbimagewidth / originalwidth, this.options.thumbimageheight / originalheight); w = Math.round(scale * originalwidth) + "px"; h = Math.round(scale * originalheight) + "px" } $(".html5gallery-tn-image-" + this.id).css({ width: w, height: h }); if (this.options.thumbshowtitle) $(".html5gallery-tn-title-" + this.id).css({ width: String(this.options.thumbwidth - 2) + "px" }) } else { var column = Math.floor(this.options.width / (this.options.thumbwidth + this.options.thumbgap)); if (column < 1) column = 1; marginL = (this.options.width - column * this.options.thumbwidth - (column - 1) * this.options.thumbgap) / 2; $(".html5gallery-thumbs-" + this.id).css({ "margin-left": marginL + "px", width: this.options.width + "px" }); $(".html5gallery-tn-" + this.id).css({ width: this.options.thumbwidth + "px", height: this.options.thumbheight + "px" }); $(".html5gallery-tn-selected-" + this.id).css({ width: this.options.thumbwidth + "px", height: this.options.thumbheight + "px" }); $(".html5gallery-tn-img-" + this.id).css({ width: String(this.options.thumbimagewidth + 2 * this.options.thumbimageborder) + "px", height: String(this.options.thumbimageheight + 2 * this.options.thumbimageborder) + "px" }); $(".html5gallery-tn-image-" + this.id).parent().css({ width: this.options.thumbimagewidth + "px", height: this.options.thumbimageheight + "px" }); var w = "100%"; var h = "auto"; var originalwidth = $(".html5gallery-tn-image-" + this.id).data("originalwidth"); var originalheight = $(".html5gallery-tn-image-" + this.id).data("originalheight"); if (originalwidth > 0 && originalheight > 0) { var scale = Math.max(this.options.thumbimagewidth / originalwidth, this.options.thumbimageheight / originalheight); w = Math.round(scale * originalwidth) + "px"; h = Math.round(scale * originalheight) + "px" } $(".html5gallery-tn-image-" + this.id).css({ width: w, height: h }); $(".html5gallery-tn-title-" + this.id).css({ width: String(this.options.thumbwidth - 2) + "px" }) } else { this.options.thumbShowNum = Math.floor((this.options.width - carLeft - carRight - carButtonW) / (this.options.thumbwidth + this.options.thumbgap)); if (this.options.thumbShowNum < 1) this.options.thumbShowNum = 1; this.options.thumbMaskWidth = this.options.thumbShowNum * this.options.thumbwidth + this.options.thumbShowNum * this.options.thumbgap; this.options.thumbTotalWidth = this.elemArray.length * this.options.thumbwidth + (this.elemArray.length - 1) * this.options.thumbgap; var marginL = 0; if (this.options.thumbMaskWidth > this.options.thumbTotalWidth) marginL = this.options.thumbMaskWidth / 2 - this.options.thumbTotalWidth / 2 - this.options.thumbgap / 2; $(".html5gallery-car-" + this.id).css({ height: this.options.carouselHeight + "px" }); $(".html5gallery-car-list-" + this.id).css({ height: this.options.carouselHeight + "px" }); $(".html5gallery-car-left-" + this.id).css({ top: String(this.options.carouselHeight / 2 - this.options.carouselarrowheight / 2) + "px" }); $(".html5gallery-car-right-" + this.id).css({ top: String(this.options.carouselHeight / 2 - this.options.carouselarrowheight / 2) + "px" }); $(".html5gallery-tn-title-" + this.id).css({ width: String(this.options.thumbwidth - 2) + "px" }); $(".html5gallery-tn-" + this.id).css({ width: this.options.thumbwidth + "px", height: this.options.thumbheight + "px" }); $(".html5gallery-tn-selected-" + this.id).css({ width: this.options.thumbwidth + "px", height: this.options.thumbheight + "px" }); $(".html5gallery-tn-img-" + this.id).css({ width: String(this.options.thumbimagewidth + 2 * this.options.thumbimageborder) + "px", height: String(this.options.thumbimageheight + 2 * this.options.thumbimageborder) + "px" }); $(".html5gallery-tn-image-" + this.id).parent().css({ width: this.options.thumbimagewidth + "px", height: this.options.thumbimageheight + "px" }); var w = "100%"; var h = "auto"; var originalwidth = $(".html5gallery-tn-image-" + this.id).data("originalwidth"); var originalheight = $(".html5gallery-tn-image-" + this.id).data("originalheight"); if (originalwidth > 0 && originalheight > 0) { var scale = Math.max(this.options.thumbimagewidth / originalwidth, this.options.thumbimageheight / originalheight); w = Math.round(scale * originalwidth) + "px"; h = Math.round(scale * originalheight) + "px" } $(".html5gallery-tn-image-" + this.id).css({ width: w, height: h }); $(".html5gallery-thumbs-" + this.id).css({ "margin-left": marginL + "px", width: String(this.elemArray.length * (this.options.thumbwidth + this.options.thumbgap)) + "px" }) } var maskLeft = Math.round((this.options.width - carLeft - carRight) / 2 - this.options.thumbMaskWidth / 2); $(".html5gallery-car-mask-" + this.id).css({ left: maskLeft + "px", width: this.options.thumbMaskWidth + "px", height: this.options.carouselHeight + "px" }); this.carouselHighlight(this.curElem, true) } }, createStyleDefault: function() { this.options.thumboriginalwidth = this.options.thumbwidth; this.options.thumboriginalheight = this.options.thumbheight; if (this.options.thumbresponsive == "samecolumn") { this.options.carouselcolumn = this.options.thumbcolumns; if (this.options.thumbcolumnsresponsive) { var fullW = $(window).width(); if (fullW < this.options.thumbsmallsize) this.options.carouselcolumn = this.options.thumbsmallcolumns; else if (fullW < this.options.thumbmediumsize) this.options.carouselcolumn = this.options.thumbmediumcolumns } this.options.thumbwidth = Math.min((this.options.width - this.options.thumbgap * (this.options.carouselcolumn - 1)) / this.options.carouselcolumn); this.options.thumbheight = this.options.thumbwidth * this.options.thumboriginalheight / this.options.thumboriginalwidth } else if (this.options.thumbcolumnsresponsive) { var fullW = $(window).width(); if (fullW < this.options.thumbsmallsize) { this.options.thumbwidth = this.options.thumbsmallwidth; this.options.thumbheight = this.options.thumbsmallheight } else if (fullW < this.options.thumbmediumsize) { this.options.thumbwidth = this.options.thumbmediumwidth; this.options.thumbheight = this.options.thumbmediumheight } } this.options.thumbimagewidth = this.options.thumbwidth - 2 * this.options.thumbimageborder; this.options.thumbimageheight = this.options.thumbheight - 2 * this.options.thumbimageborder; if (this.options.thumbshowtitle) this.options.thumbheight += this.options.thumbtitleheight; if (!this.options.showtitle) this.options.titleheight = 0; if (!this.options.showsocialmedia || !this.options.showfacebooklike && !this.options.showtwitter && !this.options.showgoogleplus) this.options.socialheight = 0; this.options.headerHeight = this.options.titleoverlay ? this.options.socialheight : this.options.titleheight + this.options.socialheight; this.options.boxWidth = this.options.width; if (this.options.headerpos == "bottomoutside") this.options.boxHeight = this.options.height; else this.options.boxHeight = this.options.height + this.options.headerHeight; this.options.boxLeft = this.options.padding; this.options.boxTop = this.options.padding; if (this.options.slideshadow) { this.options.boxWidth += 8; this.options.boxLeft -= 4; this.options.boxTop -= 4 } if (this.options.showcarousel) { this.options.carouselWidth = this.options.width; this.options.carouselHeight = this.options.thumbheight + 2 * this.options.thumbmargin; this.options.carouselLeft = this.options.padding; this.options.carouselTop = this.options.padding + this.options.boxHeight + this.options.carouselmargin; if (this.options.carouselmultirows) if (this.options.thumbresponsive == "samecolumn") { this.options.carouselcolumn = this.options.thumbcolumns; if (this.options.thumbcolumnsresponsive) { var fullW = $(window).width(); if (fullW < this.options.thumbsmallsize) this.options.carouselcolumn = this.options.thumbsmallcolumns; else if (fullW < this.options.thumbmediumsize) this.options.carouselcolumn = this.options.thumbmediumcolumns } this.options.thumbwidth = Math.min((this.options.width - this.options.thumbgap * (this.options.carouselcolumn - 1)) / this.options.carouselcolumn); this.options.thumbheight = this.options.thumbwidth * this.options.thumboriginalheight / this.options.thumboriginalwidth; this.options.thumbimagewidth = this.options.thumbwidth - 2 * this.options.thumbimageborder; this.options.thumbimageheight = this.options.thumbheight - 2 * this.options.thumbimageborder; if (this.options.thumbshowtitle) this.options.thumbheight += this.options.thumbtitleheight; this.options.carouselHeight = Math.ceil(this.elemArray.length / this.options.carouselcolumn) * (this.options.thumbheight + this.options.thumbrowgap) } else { this.options.carouselcolumn = Math.floor(this.options.width / (this.options.thumbwidth + this.options.thumbgap)); if (this.options.carouselcolumn < 1) this.options.carouselcolumn = 1; this.options.carouselHeight = Math.ceil(this.elemArray.length / this.options.carouselcolumn) * (this.options.thumbheight + this.options.thumbrowgap) } } else { this.options.carouselWidth = 0; this.options.carouselHeight = 0; this.options.carouselLeft = 0; this.options.carouselTop = 0; this.options.carouselmargin = 0 } this.options.totalWidth = this.options.width + 2 * this.options.padding; this.options.totalHeight = this.options.height + this.options.carouselHeight + this.options.carouselmargin + this.options.headerHeight + 2 * this.options.padding; this.options.containerWidth = this.options.totalWidth; this.options.containerHeight = this.options.totalHeight; if (this.options.responsive) { this.options.originalWidth = this.options.width; this.options.originalHeight = this.options.height; this.container.css({ "max-width": "100%" }) } else this.container.css({ "width": this.options.containerWidth, "height": this.options.containerHeight }); var titleTop = 0; var socialTop = 0; this.options.elemTop = 0; if (this.options.headerpos == "top") { socialTop = 0; titleTop = this.options.socialheight; this.options.elemTop = this.options.headerHeight } else if (this.options.headerpos == "bottom") { this.options.elemTop = 0; titleTop = this.options.titleoverlay ? this.options.height - this.options.titleheight : this.options.height; socialTop = this.options.titleoverlay ? this.options.height : this.options.height + this.options.titleheight } var styleCss = " .html5gallery-container-" + this.id + " { display:block; position:absolute; left:0px; top:0px; width:" + this.options.totalWidth + "px; height:" + this.options.totalHeight + "px; " + (!this.options.bgimage ? "" : "background:url('" + this.options.bgimage + "') center top;") + " background-color:" + this.options.bgcolor + ";}"; if (this.options.galleryshadow) styleCss += " .html5gallery-container-" + this.id + " { -moz-box-shadow: 0px 2px 5px #aaa; -webkit-box-shadow: 0px 2px 5px #aaa; box-shadow: 0px 2px 5px #aaa;}"; styleCss += " .html5gallery-box-" + this.id + " {display:block; position:absolute; text-align:center; left:" + this.options.boxLeft + "px; top:" + this.options.boxTop + "px; width:" + this.options.boxWidth + "px; height:" + this.options.boxHeight + "px;}"; var viralPaddingTop = Math.round(this.options.socialheight / 2 - 12); styleCss += " .html5gallery-title-text-" + this.id + " " + this.options.titlecss + " .html5gallery-title-text-" + this.id + " " + this.options.titlecsslink + " .html5gallery-error-" + this.id + " " + this.options.errorcss; styleCss += " .html5gallery-description-text-" + this.id + " " + this.options.descriptioncss + " .html5gallery-description-text-" + this.id + " " + this.options.descriptioncsslink; styleCss += " .html5gallery-fullscreen-title-" + this.id + "" + this.options.lightboxtitlecss + " .html5gallery-fullscreen-title-" + this.id + "" + this.options.lightboxtitlelinkcss; styleCss += " .html5gallery-fullscreen-description-" + this.id + "" + this.options.lightboxdescriptioncss + " .html5gallery-fullscreen-description-" + this.id + "" + this.options.lightboxdescriptionlinkcss; styleCss += " .html5gallery-viral-" + this.id + " {display:block; overflow:hidden; position:absolute; text-align:left; top:" + socialTop + "px; left:0px; width:" + this.options.boxWidth + "px; height:" + this.options.socialheight + "px; padding-top:" + viralPaddingTop + "px;}"; var titleWidth = this.options.slideshadow ? this.options.boxWidth - 8 : this.options.boxWidth; styleCss += " .html5gallery-title-" + this.id + " {display:" + (this.options.titleoverlay && this.options.titleautohide ? "none" : "block") + "; overflow:hidden; position:absolute; left:0px; width:" + titleWidth + "px; "; if (!this.options.titleoverlay) { styleCss += "top:" + titleTop + "px; height:" + this.options.titleheight + "px; }"; if (this.options.titlesmallscreen) styleCss += " @media (max-width: " + this.options.titlesmallscreenwidth + "px) { .html5gallery-title-" + this.id + " {height:" + this.options.titleheightsmallscreen + "px; }}" } else if (this.options.headerpos == "top") styleCss += "top:0px; height:auto; }"; else styleCss += "bottom:0px; height:auto; }"; styleCss += " .html5gallery-timer-" + this.id + " {display:block; position:absolute; top:" + String(this.options.elemTop + this.options.height - 2) + "px; left:0px; width:0px; height:2px; background-color:#ccc; filter:alpha(opacity=60); opacity:0.6; }"; styleCss += " .html5gallery-elem-" + this.id + " {display:block; overflow:hidden; position:absolute; top:" + this.options.elemTop + "px; left:0px; width:" + this.options.width + "px; height:" + this.options.height + "px;}"; if (this.options.isIE7 || this.options.isIE6) { styleCss += " .html5gallery-loading-" + this.id + " {display:none; }"; styleCss += " .html5gallery-loading-center-" + this.id + " {display:none; }" } else { styleCss += " .html5gallery-loading-" + this.id + " {display:block; position:absolute; top:4px; right:4px; width:100%; height:100%; background:url('" + this.options.skinfolder + "loading.gif') no-repeat top right;}"; styleCss += " .html5gallery-loading-center-" + this.id + " {display:block; position:absolute; top:0px; left:0px; width:100%; height:100%; background:url('" + this.options.skinfolder + "loading_center.gif') no-repeat center center;}" } if (this.options.borderradius > 0) styleCss += " .html5gallery-elem-" + this.id + " {overflow:hidden; border-radius:" + this.options.borderradius + "px; -moz-border-radius:" + this.options.borderradius + "px; -webkit-border-radius:" + this.options.borderradius + "px;}"; if (this.options.slideshadow) { styleCss += " .html5gallery-title-" + this.id + " { padding:4px;}"; styleCss += " .html5gallery-timer-" + this.id + " { margin:4px;}"; styleCss += " .html5gallery-elem-" + this.id + " { overflow:hidden; padding:4px; -moz-box-shadow: 0px 2px 5px #aaa; -webkit-box-shadow: 0px 2px 5px #aaa; box-shadow: 0px 2px 5px #aaa;}" } if (this.options.showcarousel && this.options.carouselmultirows) { styleCss += " .html5gallery-car-" + this.id + " { position:absolute; display:block; overflow:hidden; left:" + this.options.carouselLeft + "px; top:" + this.options.carouselTop + "px; width:" + this.options.width + "px;"; if (this.options.carouselbgtransparent) styleCss += "background-color:transparent;"; else styleCss += "border-top:1px solid " + this.options.carouseltopborder + ";" + "border-bottom:1px solid " + this.options.carouselbottomborder + ";" + "background-color: " + this.options.carouselbgcolorend + "; " + "background: " + this.options.carouselbgcolorend + " -webkit-gradient(linear, left top, left bottom, from(" + this.options.carouselbgcolorstart + "), to(" + this.options.carouselbgcolorend + ")) no-repeat; " + "background: " + this.options.carouselbgcolorend + " -moz-linear-gradient(top, " + this.options.carouselbgcolorstart + ", " + this.options.carouselbgcolorend + ") no-repeat; " + "filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=" + this.options.carouselbgcolorstart + ", endColorstr=" + this.options.carouselbgcolorend + ") no-repeat; " + "-ms-filter: 'progid:DXImageTransform.Microsoft.gradient(startColorstr=" + this.options.carouselbgcolorstart + ", endColorstr=" + this.options.carouselbgcolorend + ")' no-repeat;"; if (this.options.carouselbgimage) styleCss += "background:url('" + this.options.skinfolder + this.options.carouselbgimage + "') center top;"; styleCss += "}"; var column = Math.floor(this.options.width / (this.options.thumbwidth + this.options.thumbgap)); if (column < 1) column = 1; var marginL = (this.options.width - column * this.options.thumbwidth - (column - 1) * this.options.thumbgap) / 2; var thumbsWidth = this.options.thumbresponsive == "samecolumn" ? (this.options.thumbwidth + this.options.thumbgap) * this.options.carouselcolumn : this.options.width; styleCss += ".html5gallery-thumbs-" + this.id + " { position:relative; display:block; margin-left:" + marginL + "px; width:" + thumbsWidth + "px; top:0px; }"; styleCss += " .html5gallery-tn-" + this.id + " { display:block; float:left; margin-left:0px; margin-right:" + this.options.thumbgap + "px; margin-bottom:" + this.options.thumbrowgap + "px; text-align:center; cursor:pointer; width:" + this.options.thumbwidth + "px;height:" + this.options.thumbheight + "px;overflow:hidden;}"; if (this.options.thumbshadow) styleCss += " .html5gallery-tn-" + this.id + " { -moz-box-shadow: 0px 2px 5px #aaa; -webkit-box-shadow: 0px 2px 5px #aaa; box-shadow: 0px 2px 5px #aaa;}"; styleCss += " .html5gallery-tn-selected-" + this.id + " { display:block; float:left; margin-left:0px; margin-right:" + this.options.thumbgap + "px; margin-bottom:" + this.options.thumbrowgap + "px; text-align:center; cursor:pointer; width:" + this.options.thumbwidth + "px;height:" + this.options.thumbheight + "px;overflow:hidden;}"; if (this.options.thumbshadow) styleCss += " .html5gallery-tn-selected-" + this.id + " { -moz-box-shadow: 0px 2px 5px #aaa; -webkit-box-shadow: 0px 2px 5px #aaa; box-shadow: 0px 2px 5px #aaa;}"; styleCss += " .html5gallery-tn-" + this.id + " {background-color:" + this.options.thumbimagebordercolor + ";}" + " .html5gallery-tn-" + this.id + " { filter:alpha(opacity=" + Math.round(this.options.thumbopacity * 100) + "); opacity:" + this.options.thumbopacity + "; } " + " .html5gallery-tn-selected-" + this.id + " { filter:alpha(opacity=100); opacity:1; } "; styleCss += " .html5gallery-tn-img-" + this.id + " {display:block; overflow:hidden; width:" + String(this.options.thumbimagewidth + 2 * this.options.thumbimageborder) + "px;height:" + String(this.options.thumbimageheight + 2 * this.options.thumbimageborder) + "px;}"; if (this.options.thumbunselectedimagebordercolor) styleCss += " .html5gallery-tn-selected-" + this.id + " {background-color:" + this.options.thumbunselectedimagebordercolor + ";}"; if (this.options.thumbshowtitle) { styleCss += " .html5gallery-tn-title-" + this.id + " {display:block; overflow:hidden; float:top; height:" + this.options.thumbtitleheight + "px;width:" + String(this.options.thumbwidth - 2) + "px;}"; styleCss += " .html5gallery-tn-title-" + this.id + this.options.thumbtitlecss } else styleCss += " .html5gallery-tn-title-" + this.id + " {display:none;}"; this.carouselHighlight = function(index, nonanimation) {} } else if (this.options.showcarousel) { styleCss += " .html5gallery-car-" + this.id + " { position:absolute; display:block; overflow:hidden; left:" + this.options.carouselLeft + "px; top:" + this.options.carouselTop + "px; width:" + this.options.width + "px; height:" + this.options.carouselHeight + "px;"; if (this.options.carouselbgtransparent) styleCss += "background-color:transparent;"; else styleCss += "border-top:1px solid " + this.options.carouseltopborder + ";" + "border-bottom:1px solid " + this.options.carouselbottomborder + ";" + "background-color: " + this.options.carouselbgcolorend + "; " + "background: " + this.options.carouselbgcolorend + " -webkit-gradient(linear, left top, left bottom, from(" + this.options.carouselbgcolorstart + "), to(" + this.options.carouselbgcolorend + ")) no-repeat; " + "background: " + this.options.carouselbgcolorend + " -moz-linear-gradient(top, " + this.options.carouselbgcolorstart + ", " + this.options.carouselbgcolorend + ") no-repeat; " + "filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=" + this.options.carouselbgcolorstart + ", endColorstr=" + this.options.carouselbgcolorend + ") no-repeat; " + "-ms-filter: 'progid:DXImageTransform.Microsoft.gradient(startColorstr=" + this.options.carouselbgcolorstart + ", endColorstr=" + this.options.carouselbgcolorend + ")' no-repeat;"; if (this.options.carouselbgimage) styleCss += "background:url('" + this.options.skinfolder + this.options.carouselbgimage + "') center top;"; styleCss += "}"; var carLeft = 4; var carRight = 4; styleCss += " .html5gallery-car-list-" + this.id + " { position:absolute; display:block; overflow:hidden; left:" + carLeft + "px; width:" + String(this.options.width - carLeft - carRight) + "px; top:0px; height:" + this.options.carouselHeight + "px; " + "}"; this.options.carouselNavButton = false; if (Math.floor((this.options.width - carLeft - carRight) / (this.options.thumbwidth + this.options.thumbgap)) < this.elemArray.length) this.options.carouselNavButton = true; styleCss += " .html5gallery-car-left-" + this.id + " { position:absolute; overflow:hidden; width:" + this.options.carouselarrowwidth + "px; height:" + this.options.carouselarrowheight + "px; left:0px; top:" + String(this.options.carouselHeight / 2 - this.options.carouselarrowheight / 2) + "px; background:url('" + this.options.skinfolder + "carousel_left.png') no-repeat 0px 0px;} " + " .html5gallery-car-right-" + this.id + " { position:absolute; overflow:hidden; width:" + this.options.carouselarrowwidth + "px; height:" + this.options.carouselarrowheight + "px; right:0px; top:" + String(this.options.carouselHeight / 2 - this.options.carouselarrowheight / 2) + "px; background:url('" + this.options.skinfolder + "carousel_right.png') no-repeat 0px 0px;} "; var carButtonW = this.options.carouselNavButton ? this.options.carouselarrowwidth * 2 + 8 : 0; $(".html5gallery-car-left-" + this.id).css({ display: this.options.carouselNavButton ? "block" : "none" }); $(".html5gallery-car-right-" + this.id).css({ display: this.options.carouselNavButton ? "block" : "none" }); this.options.thumbShowNum = Math.floor((this.options.width - carLeft - carRight - carButtonW) / (this.options.thumbwidth + this.options.thumbgap)); if (this.options.thumbShowNum < 1) this.options.thumbShowNum = 1; this.options.thumbMaskWidth = this.options.thumbShowNum * this.options.thumbwidth + this.options.thumbShowNum * this.options.thumbgap; this.options.thumbTotalWidth = this.elemArray.length * this.options.thumbwidth + (this.elemArray.length - 1) * this.options.thumbgap; var marginL = 0; if (this.options.thumbMaskWidth > this.options.thumbTotalWidth) marginL = this.options.thumbMaskWidth / 2 - this.options.thumbTotalWidth / 2 - this.options.thumbgap / 2; styleCss += ".html5gallery-thumbs-" + this.id + " { position:relative; display:block; margin-left:" + marginL + "px; width:" + String(this.elemArray.length * (this.options.thumbwidth + this.options.thumbgap)) + "px; top:" + Math.round(this.options.carouselHeight / 2 - this.options.thumbheight / 2) + "px; }"; var maskLeft = Math.round((this.options.width - carLeft - carRight) / 2 - this.options.thumbMaskWidth / 2); styleCss += " .html5gallery-car-mask-" + this.id + " { position:absolute; display:block; text-align:left; overflow:hidden; left:" + maskLeft + "px; width:" + this.options.thumbMaskWidth + "px; top:0px; height:" + this.options.carouselHeight + "px;} "; styleCss += " .html5gallery-tn-" + this.id + " { display:block; float:left; margin-left:" + Math.floor(this.options.thumbgap / 2) + "px; margin-right:" + Math.floor(this.options.thumbgap / 2) + "px; text-align:center; cursor:pointer; width:" + this.options.thumbwidth + "px;height:" + this.options.thumbheight + "px;overflow:hidden;}"; if (this.options.thumbshadow) styleCss += " .html5gallery-tn-" + this.id + " { -moz-box-shadow: 0px 2px 5px #aaa; -webkit-box-shadow: 0px 2px 5px #aaa; box-shadow: 0px 2px 5px #aaa;}"; styleCss += " .html5gallery-tn-selected-" + this.id + " { display:block; float:left; margin-left:" + Math.floor(this.options.thumbgap / 2) + "px; margin-right:" + Math.floor(this.options.thumbgap / 2) + "px;text-align:center; cursor:pointer; width:" + this.options.thumbwidth + "px;height:" + this.options.thumbheight + "px;overflow:hidden;}"; if (this.options.thumbshadow) styleCss += " .html5gallery-tn-selected-" + this.id + " { -moz-box-shadow: 0px 2px 5px #aaa; -webkit-box-shadow: 0px 2px 5px #aaa; box-shadow: 0px 2px 5px #aaa;}"; styleCss += " .html5gallery-tn-" + this.id + " {background-color:" + this.options.thumbimagebordercolor + ";}" + " .html5gallery-tn-" + this.id + " { filter:alpha(opacity=" + Math.round(this.options.thumbopacity * 100) + "); opacity:" + this.options.thumbopacity + "; } " + " .html5gallery-tn-selected-" + this.id + " { filter:alpha(opacity=100); opacity:1; } "; styleCss += " .html5gallery-tn-img-" + this.id + " {display:block; overflow:hidden; width:" + String(this.options.thumbimagewidth + 2 * this.options.thumbimageborder) + "px;height:" + String(this.options.thumbimageheight + 2 * this.options.thumbimageborder) + "px;}"; if (this.options.thumbunselectedimagebordercolor) styleCss += " .html5gallery-tn-selected-" + this.id + " {background-color:" + this.options.thumbunselectedimagebordercolor + ";}"; if (this.options.thumbshowtitle) { styleCss += " .html5gallery-tn-title-" + this.id + " {display:block; overflow:hidden; float:top; height:" + this.options.thumbtitleheight + "px;width:" + String(this.options.thumbwidth - 2) + "px;}"; styleCss += " .html5gallery-tn-title-" + this.id + this.options.thumbtitlecss } else styleCss += " .html5gallery-tn-title-" + this.id + " {display:none;}"; this.carouselHighlight = function(index, nonanimation) { $("#html5gallery-tn-" + this.id + "-" + index, this.$gallery).removeClass("html5gallery-tn-" + this.id).addClass("html5gallery-tn-selected-" + this.id); if (this.options.thumbShowNum >= this.elemArray.length) { $(".html5gallery-car-left-" + this.id, this.$gallery).css({ "background-position": "-" + String(this.options.carouselarrowwidth * 2) + "px 0px", cursor: "" }); $(".html5gallery-car-left-" + this.id, this.$gallery).data("disabled", true); $(".html5gallery-car-right-" + this.id, this.$gallery).css({ "background-position": "-" + String(this.options.carouselarrowwidth * 2) + "px 0px", cursor: "" }); $(".html5gallery-car-right-" + this.id, this.$gallery).data("disabled", true); return } var pos = Math.floor(index / this.options.thumbShowNum) * this.options.thumbShowNum * (this.options.thumbwidth + this.options.thumbgap); if (pos >= this.options.thumbTotalWidth - this.options.thumbMaskWidth + this.options.thumbgap) pos = this.options.thumbTotalWidth - this.options.thumbMaskWidth + this.options.thumbgap; pos = -pos; if (nonanimation) $(".html5gallery-thumbs-" + this.id, this.$gallery).css({ marginLeft: pos }); else $(".html5gallery-thumbs-" + this.id, this.$gallery).animate({ marginLeft: pos }, 500); this.updateCarouseButtons(pos) }; this.carouselPrev = function() { var $thumbContainer = $(".html5gallery-thumbs-" + this.id, this.$gallery); if (parseInt($thumbContainer.css("margin-left")) == 0) return; else { var pos = -1 * parseInt($thumbContainer.css("margin-left")) - this.options.thumbShowNum * (this.options.thumbwidth + this.options.thumbgap); if (pos < 0) pos = 0; $thumbContainer.animate({ marginLeft: -pos }, 500, this.options.carouseleasing); this.updateCarouseButtons(-pos) } }; this.carouselNext = function() { var $thumbContainer = $(".html5gallery-thumbs-" + this.id, this.$gallery); if (parseInt($thumbContainer.css("margin-left")) == -(this.options.thumbTotalWidth - this.options.thumbMaskWidth + this.options.thumbgap)) return; else { var pos = -1 * parseInt($thumbContainer.css("margin-left")) + this.options.thumbShowNum * (this.options.thumbwidth + this.options.thumbgap); if (pos >= this.options.thumbTotalWidth - this.options.thumbMaskWidth + this.options.thumbgap) pos = this.options.thumbTotalWidth - this.options.thumbMaskWidth + this.options.thumbgap; $thumbContainer.animate({ marginLeft: -pos }, 500, this.options.carouseleasing); this.updateCarouseButtons(-pos) } }; this.updateCarouseButtons = function(pos) { var $leftButton = $(".html5gallery-car-left-" + this.id, this.$gallery); var $rightButton = $(".html5gallery-car-right-" + this.id, this.$gallery); var rightMost = -1 * (this.options.thumbTotalWidth - this.options.thumbMaskWidth + this.options.thumbgap); if (pos == 0) { $leftButton.css({ "background-position": "-" + String(this.options.carouselarrowwidth * 2) + "px 0px", cursor: "" }); $leftButton.data("disabled", true) } else if ($leftButton.data("disabled")) { $leftButton.css({ "background-position": "0px 0px", cursor: "pointer" }); $leftButton.data("disabled", false) } if (pos == rightMost) { $rightButton.css({ "background-position": "-" + String(this.options.carouselarrowwidth * 2) + "px 0px", cursor: "" }); $rightButton.data("disabled", true) } else if ($rightButton.data("disabled")) { $rightButton.css({ "background-position": "0px 0px", cursor: "pointer" }); $rightButton.data("disabled", false) } } } else styleCss += " .html5gallery-car-" + this.id + " { display:none; }"; styleCss += ".html5gallery-container-" + this.id + " div {box-sizing:content-box;}"; $("head").append("") }, loadCarousel: function() { var instance = this; var $thumbContainer = $(".html5gallery-thumbs-" + this.id, this.$gallery); $thumbContainer.empty(); for (var i = 0; i < this.elemArray.length; i++) { var $thumb = $("
"); $thumb.appendTo($thumbContainer); if (!this.options.thumblinkintitle) $thumb.off("click").click(function(event) { instance.onThumbClick($(this).data("index")); instance.slideRun($(this).data("index"), true, true) }); $thumb.hover(function() { instance.onThumbOver($(this).data("index")); $(this).removeClass("html5gallery-tn-" + instance.id).addClass("html5gallery-tn-selected-" + instance.id) }, function() { if ($(this).data("index") !== instance.curElem) $(this).removeClass("html5gallery-tn-selected-" + instance.id).addClass("html5gallery-tn-" + instance.id) }); var imgLoader = new Image; imgLoader.data = i; $(imgLoader).on("load", function() { $(this).data("originalwidth", this.width); $(this).data("originalheight", this.height); var scale = Math.max(instance.options.thumbimagewidth / this.width, instance.options.thumbimageheight / this.height); var w = Math.round(scale * this.width); var h = Math.round(scale * this.height); var videoPlay = instance.options.thumbshowplayonvideo && instance.elemArray[this.data][ELEM_TYPE] != 1 ? "
" : ""; var imgtitle = instance.options.addthumbnailtitle && instance.elemArray[this.data][ELEM_TITLE] ? ' title="' + instance.elemArray[this.data][ELEM_TITLE] + '"' : ""; if (instance.options.carouselmultirows && instance.options.thumbresponsive == "samecolumn") $("#html5gallery-tn-" + instance.id + "-" + this.data, $thumbContainer).append("
" + videoPlay + "
" + instance.elemArray[this.data][ELEM_TITLE] + (instance.options.thumbshowdescription ? "
" + instance.elemArray[this.data][ELEM_INFORMATION] + "" : "") + "
"); else $("#html5gallery-tn-" + instance.id + "-" + this.data, $thumbContainer).append("
" + videoPlay + "
" + instance.elemArray[this.data][ELEM_TITLE] + (instance.options.thumbshowdescription ? "
" + instance.elemArray[this.data][ELEM_INFORMATION] + "" : "") + "
"); if (instance.options.thumblinkintitle) { var $thumbImage = $(".html5gallery-tn-img-" + instance.id, $thumbContainer); $thumbImage.off("click").click(function(event) { instance.onThumbClick($(this).parent().data("index")); instance.slideRun($(this).parent().data("index"), true, true) }) } }); imgLoader.src = this.elemArray[i][ELEM_THUMBNAIL] } if (this.options.carouselmultirows) $thumbContainer.append("
") }, goNormal: function() { this.isFullscreen = false; if ($(".html5gallery-fullscreen-box-" + this.id, this.$fullscreen).length > 0) $(".html5gallery-fullscreen-box-" + this.id, this.$fullscreen).stop(); this.slideshowTimeout.stop(); $(document).off("keyup.html5gallery"); $(".html5gallery-timer-" + this.id, this.$gallery).css({ width: 0 }); if ($(".html5gallery-elem-" + this.id, this.$fullscreen).length > 0) { var $elem = $(".html5gallery-elem-" + this.id, this.$fullscreen).empty().css({ top: this.options.elemTop }); $(".html5gallery-box-" + this.id, this.$gallery).prepend($elem) } this.slideRun(this.curElem); this.$fullscreen.remove(); if (this.options.imagetoolboxmode == "show") this.showimagetoolbox(this.elemArray[this.curElem][ELEM_TYPE]); else this.hideimagetoolbox() }, goFullscreen: function() { this.hideimagetoolbox(); this.slideshowTimeout.stop(); $(".html5gallery-fullscreen-timer-" + this.id, this.$fullscreen).css({ width: 0 }); this.isFullscreen = true; this.fullscreenInitial = 20; this.fullscreenMargin = this.options.lightboxborder; this.fullscreenBarH = this.options.lightboxtextheight; this.fullscreenOutsideMargin = this.options.lightboxmargin; var fullW = $(window).width(); var w = this.elemArray[this.curElem][ELEM_WIDTH], h = this.elemArray[this.curElem][ELEM_HEIGHT]; this.fullscreenWidth = fullW - 2 * this.fullscreenMargin - 2 * this.fullscreenOutsideMargin; var winH = window.innerHeight ? window.innerHeight : $(window).height(); this.fullscreenHeight = winH - 2 * this.fullscreenMargin - this.fullscreenBarH - 2 * this.fullscreenOutsideMargin; var fullH = Math.max(winH, $(document).height()); var fW = this.elemArray[this.curElem][ELEM_LIGHTBOXWIDTH] ? Math.min(this.elemArray[this.curElem][ELEM_LIGHTBOXWIDTH], this.fullscreenWidth) : this.fullscreenWidth; var fH = this.elemArray[this.curElem][ELEM_LIGHTBOXHEIGHT] ? Math.min(this.elemArray[this.curElem][ELEM_LIGHTBOXHEIGHT], this.fullscreenHeight) : this.fullscreenHeight; var scale = Math.min(fW / w, fH / h); if (scale < 1) w *= scale, h *= scale; var marginT = $(window).scrollTop() + Math.round((winH - (h + 2 * this.fullscreenMargin + this.fullscreenBarH)) / 2); this.$fullscreen = $("
" + "
" + "
" + "
" + "
" + "
" + "
" + "
" + "
" + "
" + "
" + "
" + "
" + "
" + "
" + "
" + "
" + "" + "" + "
" + "
"); this.$fullscreen.appendTo("body"); var instance = this; $(window).scroll(function() { if (instance.options.isMobile && !instance.options.mobileresizeevent) return; var $box = $(".html5gallery-fullscreen-box-" + instance.id, instance.$fullscreen); var winH = window.innerHeight ? window.innerHeight : $(window).height(); var marginT = $(window).scrollTop() + Math.round((winH - $box.height()) / 2); $box.css({ "top": marginT }) }); this.createSocial(true); $(".html5gallery-fullscreen-box-" + this.id, this.$fullscreen).animate({ height: h + 2 * this.fullscreenMargin }, "slow", function() { $(this).animate({ width: w + 2 * instance.fullscreenMargin }, "slow", function() { $(this).animate({ height: "+=" + instance.fullscreenBarH }, "slow", function() { if (instance.isFullscreen) { var $elem = $(".html5gallery-elem-" + instance.id, instance.$gallery).empty().css({ top: 0, position: "relative" }); $(".html5gallery-fullscreen-elem-wrapper-" + instance.id, instance.$fullscreen).prepend($elem); instance.slideRun(instance.curElem); if (instance.options.showsocial) $(".html5gallery-fullscreen-social-" + instance.id, instance.$fullscreen).show() } }) }) }); $(".html5gallery-fullscreen-overlay-" + this.id, this.$fullscreen).click(function() { instance.goNormal() }); $(".html5gallery-fullscreen-box-" + this.id, this.$fullscreen).hover(function() { if (instance.elemArray.length > 1) { $(".html5gallery-fullscreen-next-" + instance.id, instance.$fullscreen).fadeIn(); $(".html5gallery-fullscreen-prev-" + instance.id, instance.$fullscreen).fadeIn() } }, function() { $(".html5gallery-fullscreen-next-" + instance.id, instance.$fullscreen).fadeOut(); $(".html5gallery-fullscreen-prev-" + instance.id, instance.$fullscreen).fadeOut() }); if (instance.options.enabletouchswipe) { var preventBrowser = instance.options.isAndroid && instance.options.enabletouchswipeonandroid ? true : false; $(".html5gallery-fullscreen-box-" + this.id, this.$fullscreen).touchSwipe({ preventWebBrowser: preventBrowser, swipeLeft: function() { if (!instance.disableTouchSwipe) instance.slideRun(-1) }, swipeRight: function() { if (!instance.disableTouchSwipe) instance.slideRun(-2) } }) } $(".html5gallery-fullscreen-close-" + this.id, this.$fullscreen).click(function() { instance.goNormal() }); $(".html5gallery-fullscreen-next-" + this.id, this.$fullscreen).click(function() { instance.slideRun(-1) }); $(".html5gallery-fullscreen-prev-" + this.id, this.$fullscreen).click(function() { instance.slideRun(-2) }); $(".html5gallery-fullscreen-play-" + this.id, this.$fullscreen).click(function() { $(".html5gallery-fullscreen-play-" + instance.id, instance.$fullscreen).hide(); $(".html5gallery-fullscreen-pause-" + instance.id, instance.$fullscreen).show(); instance.isPaused = false; var slideshowinterval = instance.elemArray[instance.curElem][ELEM_DURATION] ? instance.elemArray[instance.curElem][ELEM_DURATION] : instance.options.slideshowinterval; instance.slideshowTimeout.setInterval(slideshowinterval); instance.slideshowTimeout.start(); $(".html5gallery-fullscreen-timer-" + instance.id, instance.$fullscreen).css({ width: 0 }) }); $(".html5gallery-fullscreen-pause-" + this.id, this.$fullscreen).click(function() { $(".html5gallery-fullscreen-play-" + instance.id, instance.$fullscreen).show(); $(".html5gallery-fullscreen-pause-" + instance.id, instance.$fullscreen).hide(); instance.isPaused = true; instance.slideshowTimeout.stop(); $(".html5gallery-fullscreen-timer-" + instance.id, instance.$fullscreen).css({ width: 0 }) }); $(document).on("keyup.html5gallery", function(e) { if (e.keyCode == 27) instance.goNormal(); else if (e.keyCode == 39) instance.slideRun(-1); else if (e.keyCode == 37) instance.slideRun(-2) }) }, calcIndex: function(index) { this.savedElem = this.curElem; if (index == -2) { this.nextElem = this.curElem; this.curElem = this.prevElem; this.prevElem = this.curElem - 1 < 0 ? this.elemArray.length - 1 : this.curElem - 1 } else if (index == -1) { this.prevElem = this.curElem; this.curElem = this.nextElem; this.nextElem = this.curElem + 1 >= this.elemArray.length ? 0 : this.curElem + 1 } else if (index >= 0) { this.curElem = index; this.prevElem = this.curElem - 1 < 0 ? this.elemArray.length - 1 : this.curElem - 1; this.nextElem = this.curElem + 1 >= this.elemArray.length ? 0 : this.curElem + 1 } }, showSlideTimer: function() { var slideshowinterval = this.elemArray[this.curElem][ELEM_DURATION] ? this.elemArray[this.curElem][ELEM_DURATION] : this.options.slideshowinterval; this.slideTimerCount++; if (this.isFullscreen) $(".html5gallery-fullscreen-timer-" + this.id, this.$fullscreen).width(Math.round($(".html5gallery-fullscreen-elem-wrapper-" + this.id, this.$fullscreen).width() * 50 * (this.slideTimerCount + 1) / slideshowinterval)); else $(".html5gallery-timer-" + this.id, this.$gallery).width(Math.round(this.options.boxWidth * 50 * (this.slideTimerCount + 1) / slideshowinterval)) }, setHd: function(isHd, switching) { var type = this.elemArray[this.curElem][ELEM_TYPE]; var toSwitch = this.isHd != isHd && switching && (type == TYPE_VIDEO_FLASH || type == TYPE_VIDEO_MP4 || type == TYPE_VIDEO_OGG || type == TYPE_VIDEO_WEBM); this.isHd = isHd; if (toSwitch) this.slideRun(this.curElem, false, false, true) }, enableUpdateCarousel: function() { this.disableupdatecarousel = false }, slideRun: function(index, navClicked, thumbClicked, videoSwitching) { this.slideshowTimeout.stop(); if (this.isFullscreen) $(".html5gallery-fullscreen-timer-" + this.id, this.$fullscreen).css({ width: 0 }); else $(".html5gallery-timer-" + this.id, this.$gallery).css({ width: 0 }); if (this.options.showcarousel && this.curElem >= 0) $("#html5gallery-tn-" + this.id + "-" + this.curElem, this.$gallery).removeClass("html5gallery-tn-selected-" + this.id).addClass("html5gallery-tn-" + this.id); this.calcIndex(index); if (this.options.socialurlforeach) this.createSocialMedia(); if (!this.isFullscreen && this.options.showcarousel) { $("#html5gallery-tn-" + this.id + "-" + this.curElem, this.$gallery).removeClass("html5gallery-tn-" + this.id).addClass("html5gallery-tn-selected-" + this.id); if (!this.options.notupdatecarousel && !this.disableupdatecarousel) this.carouselHighlight(this.curElem) } if (this.options.showtitle || this.options.lightboxshowtitle || this.options.lightboxshowdescription) { var title = this.elemArray[this.curElem][ELEM_TITLE]; var description = this.elemArray[this.curElem][ELEM_INFORMATION]; if (this.options.shownumbering) title = this.options.numberingformat.replace("%NUM", this.curElem + 1).replace("%TOTAL", this.elemArray.length) + " " + title; if (this.isFullscreen) { var fullscreentitle = ""; if (this.options.lightboxshowtitle && title) fullscreentitle += title; if (this.options.lightboxshowdescription && description) fullscreentitle += "
" + description + "
"; $(".html5gallery-fullscreen-title-" + this.id, this.$fullscreen).html(fullscreentitle) } else if (this.options.showtitle) { var titleHtml = ""; if (title) titleHtml += "
" + title + "
"; if (this.options.showdescription && description) titleHtml += "
" + description + "
"; $(".html5gallery-title-" + this.id, this.$gallery).html(titleHtml) } if (!this.options.titleoverlay || !this.options.titleautohide) $(".html5gallery-title-" + this.id, this.$gallery).show() } var type = this.elemArray[this.curElem][ELEM_TYPE]; if (type < 0) return; if (!this.isFullscreen && navClicked) if (this.options.showimagetoolbox == "always") { if (this.options.imagetoolboxmode == "mouseover" || this.options.imagetoolboxmode == "show") this.showimagetoolbox(type) } else { if (this.options.showimagetoolbox == "image" && type != TYPE_IMAGE) this.hideimagetoolbox() } else if (this.options.imagetoolboxmode == "show") this.showimagetoolbox(type); else this.hideimagetoolbox(); this.onChange(); var $elem = $(".html5gallery-elem-" + this.id, parent); $elem.find("iframe").each(function() { $(this).attr("src", "") }); $elem.find("video").each(function() { $(this).attr("src", "") }); this.disableTouchSwipe = false; this.isVideoPlaying = false; var playVideo = this.options.autoplayvideo || this.options.playvideoonclick && thumbClicked || videoSwitching; var parent = this.isFullscreen ? this.$fullscreen : this.$gallery; this.showingPoster = false; if ((type == TYPE_VIDEO_FLASH || type == TYPE_VIDEO_MP4 || type == TYPE_VIDEO_OGG || type == TYPE_VIDEO_WEBM || type == TYPE_VIDEO_YOUTUBE || type == TYPE_VIDEO_VIMEO || type == TYPE_EMBED_VIDEO) && !playVideo && this.elemArray[this.curElem][ELEM_POSTER]) { this.showingPoster = true; this.showPoster() } else { if ($(".html5gallery-video-play-" + this.id, parent).length) $(".html5gallery-video-play-" + this.id, parent).remove(); if (type == TYPE_IMAGE) this.showImage(); else { if (this.options.hidetitlewhenvideoisplaying) $(".html5gallery-title-" + this.id, parent).hide(); if (type == TYPE_VIDEO_FLASH || type == TYPE_VIDEO_MP4 || type == TYPE_VIDEO_OGG || type == TYPE_VIDEO_WEBM) this.showVideo(playVideo, videoSwitching); else if (type == TYPE_VIDEO_YOUTUBE) this.showYoutube(playVideo); else if (type == TYPE_VIDEO_VIMEO) this.showVimeo(playVideo); else if (type == TYPE_EMBED_VIDEO) this.showEmbedVideo(playVideo); else if (type == TYPE_SWF) this.showSWF(); else if (type == TYPE_IFRAME) this.showIframe() } } this.checkMK(); if (this.prevElem in this.elemArray && this.elemArray[this.prevElem][ELEM_TYPE] == 1)(new Image).src = this.elemArray[this.prevElem][ELEM_SRC]; if (this.nextElem in this.elemArray && this.elemArray[this.nextElem][ELEM_TYPE] == 1)(new Image).src = this.elemArray[this.nextElem][ELEM_SRC]; if (this.prevElem in this.elemArray && !this.options.autoplayvideo && this.elemArray[this.prevElem][ELEM_POSTER])(new Image).src = this.elemArray[this.prevElem][ELEM_POSTER]; if (this.nextElem in this.elemArray && !this.options.autoplayvideo && this.elemArray[this.nextElem][ELEM_POSTER])(new Image).src = this.elemArray[this.nextElem][ELEM_POSTER]; if (this.curElem == this.elemArray.length - 1) this.looptimes++; var instance = this; if ((type == TYPE_IMAGE || this.showingPoster) && !this.isPaused && this.elemArray.length > 1 && (!this.options.loop || this.looptimes < this.options.loop)) { var slideshowinterval = this.elemArray[this.curElem][ELEM_DURATION] ? this.elemArray[this.curElem][ELEM_DURATION] : this.options.slideshowinterval; this.slideshowTimeout.setInterval(slideshowinterval); this.slideshowTimeout.start(); if (this.isFullscreen) $(".html5gallery-fullscreen-timer-" + this.id, this.$fullscreen).css({ width: 0 }); else $(".html5gallery-timer-" + this.id, this.$gallery).css({ width: 0 }) } if (this.options.loop && this.looptimes >= this.options.loop) { this.looptimes = 0; this.pauseGallery() } var type = this.elemArray[this.curElem][ELEM_TYPE]; if ((this.elemArray[this.curElem][ELEM_LINK] || (this.options.lightbox || this.elemArray[this.curElem][ELEM_LIGHTBOX]) && !this.isFullscreen) && !(this.options.linkonlyonvideo && (type == TYPE_VIDEO_FLASH || type == TYPE_VIDEO_MP4 || type == TYPE_VIDEO_OGG || type == TYPE_VIDEO_WEBM))) { $elem.css({ cursor: "pointer" }); $elem.off("click").on("click", function() { if ((instance.options.lightbox || instance.elemArray[instance.curElem][ELEM_LIGHTBOX]) && !instance.isFullscreen) instance.goFullscreen(); else if (instance.elemArray[instance.curElem][ELEM_LINK]) if (instance.elemArray[instance.curElem][ELEM_LINKTARGET]) window.open(instance.elemArray[instance.curElem][ELEM_LINK], instance.elemArray[instance.curElem][ELEM_LINKTARGET]); else window.open(instance.elemArray[instance.curElem][ELEM_LINK]) }) } else { $elem.css({ cursor: "" }); $elem.off("click") } }, showImage: function() { var parent = this.isFullscreen ? this.$fullscreen : this.$gallery; var $elem = $(".html5gallery-elem-" + this.id, parent); if ($elem.html() === "") $preloading = $("
").appendTo($elem); else $preloading = $("
").appendTo($elem); var instance = this; var imgLoader = new Image; $(imgLoader).on("load", function() { $preloading.remove(); instance.elemArray[instance.curElem][ELEM_WIDTH] = this.width; instance.elemArray[instance.curElem][ELEM_HEIGHT] = this.height; var scale; if (instance.isFullscreen) { var fullW = instance.elemArray[instance.curElem][ELEM_LIGHTBOXWIDTH] ? Math.min(instance.elemArray[instance.curElem][ELEM_LIGHTBOXWIDTH], instance.fullscreenWidth) : instance.fullscreenWidth; var fullH = instance.elemArray[instance.curElem][ELEM_LIGHTBOXHEIGHT] ? Math.min(instance.elemArray[instance.curElem][ELEM_LIGHTBOXHEIGHT], instance.fullscreenHeight) : instance.fullscreenHeight; scale = Math.min(fullW / this.width, fullH / this.height); scale = scale > 1 ? 1 : scale } else if (instance.options.resizemode == "fill") scale = Math.max(instance.options.width / this.width, instance.options.height / this.height); else scale = Math.min(instance.options.width / this.width, instance.options.height / this.height); var w = Math.round(scale * this.width); var h = Math.round(scale * this.height); var w1 = instance.isFullscreen ? w : instance.options.width; var h1 = instance.isFullscreen ? h : instance.options.height; var l = Math.round(w1 / 2 - w / 2); var t = Math.round(h1 / 2 - h / 2); if (instance.isFullscreen) instance.adjustFullscreen(w1, h1); $elem.css({ "width": w1, "height": h1 }); var $imgCur = $("
" + instance.options.watermarkcode + "
"); var $imgPrev = $(".html5gallery-elem-img-" + instance.id, $elem); if ($imgPrev.length) { $elem.prepend($imgCur); $elem.html5boxTransition(instance.id, $imgPrev, $imgCur, { effect: instance.options.effect, easing: instance.options.easing, duration: instance.options.duration, direction: instance.curElem >= instance.savedElem, slide: instance.options.slide }, function() {}) } else $elem.html($imgCur); if (instance.options.googleanalyticsaccount && window._gaq) window._gaq.push(["_trackEvent", "Image", "Play", instance.elemArray[instance.curElem][ELEM_SRC]]); instance.checkMK() }); $(imgLoader).on("error", function() { $preloading.remove(); if (instance.isFullscreen) instance.adjustFullscreen(instance.options.width, instance.options.height); $elem.html("
The requested content cannot be found
"); if (instance.options.googleanalyticsaccount && window._gaq) window._gaq.push(["_trackEvent", "Image", "Error", instance.elemArray[instance.curElem][ELEM_SRC]]) }); imgLoader.src = this.elemArray[this.curElem][ELEM_SRC] }, adjustFullscreen: function(w1, h1, noanimation) { var fullW = $(window).width(); this.fullscreenWidth = fullW - 2 * this.fullscreenMargin - 2 * this.fullscreenOutsideMargin; var winH = window.innerHeight ? window.innerHeight : $(window).height(); this.fullscreenHeight = winH - 2 * this.fullscreenMargin - this.fullscreenBarH - 2 * this.fullscreenOutsideMargin; var fullH = Math.max(winH, $(document).height()); var fW = this.elemArray[this.curElem][ELEM_LIGHTBOXWIDTH] ? Math.min(this.elemArray[this.curElem][ELEM_LIGHTBOXWIDTH], this.fullscreenWidth) : this.fullscreenWidth; var fH = this.elemArray[this.curElem][ELEM_LIGHTBOXHEIGHT] ? Math.min(this.elemArray[this.curElem][ELEM_LIGHTBOXHEIGHT], this.fullscreenHeight) : this.fullscreenHeight; var scale = Math.min(fW / w1, fH / h1); if (scale < 1) w1 *= scale, h1 *= scale; var marginT = $(window).scrollTop() + Math.round((winH - (h1 + 2 * this.fullscreenMargin + this.fullscreenBarH)) / 2); $(".html5gallery-fullscreen-" + this.id).css({ width: fullW + "px", height: fullH + "px" }); $(".html5gallery-fullscreen-title-" + this.id, this.$fullscreen).css({ "width": w1 - 2 * this.fullscreenMargin - 72 }); if (noanimation) { $(".html5gallery-fullscreen-box-" + this.id, this.$fullscreen).css({ "width": w1 + 2 * this.fullscreenMargin, "height": h1 + 2 * this.fullscreenMargin + this.fullscreenBarH, "top": marginT }); $(".html5gallery-fullscreen-elem-" + this.id, this.$fullscreen).css({ "width": w1 + 2 * this.fullscreenMargin, "height": h1 + 2 * this.fullscreenMargin }); $(".html5gallery-fullscreen-elem-wrapper-" + this.id, this.$fullscreen).css({ "width": w1, "height": h1 }); $(".html5gallery-fullscreen-bar-" + this.id, this.$fullscreen).css({ "width": w1 + 2 * this.fullscreenMargin }) } else { $(".html5gallery-fullscreen-box-" + this.id, this.$fullscreen).animate({ "width": w1 + 2 * this.fullscreenMargin, "height": h1 + 2 * this.fullscreenMargin + this.fullscreenBarH, "top": marginT }, "slow"); $(".html5gallery-fullscreen-elem-" + this.id, this.$fullscreen).animate({ "width": w1 + 2 * this.fullscreenMargin, "height": h1 + 2 * this.fullscreenMargin }, "slow"); $(".html5gallery-fullscreen-elem-wrapper-" + this.id, this.$fullscreen).animate({ "width": w1, "height": h1 }, "slow"); $(".html5gallery-fullscreen-bar-" + this.id, this.$fullscreen).animate({ "width": w1 + 2 * this.fullscreenMargin }, "slow") } $(".html5gallery-fullscreen-next-" + this.id, this.$fullscreen).css({ "top": Math.round(h1 / 2) }); $(".html5gallery-fullscreen-prev-" + this.id, this.$fullscreen).css({ "top": Math.round(h1 / 2) }); $(".html5gallery-fullscreen-play-" + this.id, this.$fullscreen).css("display", this.isPaused && this.elemArray.length > 1 && this.elemArray[this.curElem][ELEM_TYPE] == 1 ? "block" : "none"); $(".html5gallery-fullscreen-pause-" + this.id, this.$fullscreen).css("display", this.isPaused || this.elemArray.length <= 1 || this.elemArray[this.curElem][ELEM_TYPE] != 1 ? "none" : "block"); $(".html5gallery-elem-" + this.id, this.$fullscreen).css({ "width": w1, "height": h1 }); $(".html5gallery-fullscreen-timer-" + this.id, this.$fullscreen).css({ top: String(h1 - 4) + "px" }); $(".html5gallery-elem-video-" + this.id, this.$fullscreen).css({ "width": w1 + "px", "height": h1 + "px" }); $(".html5gallery-elem-video-container-" + this.id, this.$fullscreen).css({ "width": w1 + "px", "height": h1 + "px" }); var h2 = this.options.isIPhone ? h1 - 48 : h1; $(".html5gallery-elem-video-container-" + this.id, this.$fullscreen).find("video").css({ "width": w1 + "px", "height": h2 + "px" }); $("#html5gallery-elem-video-" + this.id, this.$fullscreen).css({ "width": w1 + "px", "height": h1 + "px" }); $("#html5gallery-elem-video-" + this.id, this.$fullscreen).attr("width", w1); $("#html5gallery-elem-video-" + this.id, this.$fullscreen).attr("height", h1); $(".html5gallery-elem-video-" + this.id, this.$fullscreen).find("iframe").attr("width", w1); $(".html5gallery-elem-video-" + this.id, this.$fullscreen).find("iframe").attr("height", h1); $("#html5gallery-elem-video-" + this.id, this.$fullscreen).find("iframe").attr("width", w1); $("#html5gallery-elem-video-" + this.id, this.$fullscreen).find("iframe").attr("height", h1) }, showPoster: function() { var parent = this.isFullscreen ? this.$fullscreen : this.$gallery; var $elem = $(".html5gallery-elem-" + this.id, parent); if ($elem.html() === "") $preloading = $("
").appendTo($elem); else $preloading = $("
").appendTo($elem); var instance = this; var dataW = this.elemArray[this.curElem][ELEM_WIDTH]; var dataH = this.elemArray[this.curElem][ELEM_HEIGHT]; var imgLoader = new Image; $(imgLoader).on("load", function() { $preloading.remove(); instance.elemArray[instance.curElem][ELEM_POSTERWIDTH] = this.width; instance.elemArray[instance.curElem][ELEM_POSTERHEIGHT] = this.height; var scale, w1, h1; if (instance.isFullscreen) { var lw = instance.elemArray[instance.curElem][ELEM_LIGHTBOXWIDTH] ? Math.min(instance.elemArray[instance.curElem][ELEM_LIGHTBOXWIDTH], instance.fullscreenWidth) : Math.min(dataW, instance.fullscreenWidth); var lh = instance.elemArray[instance.curElem][ELEM_LIGHTBOXHEIGHT] ? Math.min(instance.elemArray[instance.curElem][ELEM_LIGHTBOXHEIGHT], instance.fullscreenHeight) : Math.min(dataH, instance.fullscreenHeight); scale = Math.max(lw / this.width, lh / this.height); scale = scale > 1 ? 1 : scale; w1 = lw; h1 = lh } else { if (instance.options.resizemode == "fill") scale = Math.max(instance.options.width / this.width, instance.options.height / this.height); else scale = Math.min(instance.options.width / this.width, instance.options.height / this.height); w1 = instance.options.width; h1 = instance.options.height } var w = Math.round(scale * this.width); var h = Math.round(scale * this.height); var l = Math.round(w1 / 2 - w / 2); var t = Math.round(h1 / 2 - h / 2); if (instance.isFullscreen) instance.adjustFullscreen(w1, h1); $elem.css({ "width": w1, "height": h1 }); var $imgCur = $("
" + instance.options.watermarkcode + "
"); var $imgPrev = $(".html5gallery-elem-img-" + instance.id, $elem); if ($imgPrev.length) { $elem.prepend($imgCur); $elem.html5boxTransition(instance.id, $imgPrev, $imgCur, { effect: instance.options.effect, easing: instance.options.easing, duration: instance.options.duration, direction: instance.curElem >= instance.savedElem, slide: instance.options.slide }, function() {}) } else $elem.html($imgCur); if (!$(".html5gallery-video-play-" + instance.id, parent).length) { var $play = $("
").appendTo($elem); $play.off(instance.eClick).on(instance.eClick, function() { if (instance.options.hidetitlewhenvideoisplaying) $(".html5gallery-title-" + instance.id, instance.$gallery).hide(); $(this).remove(); instance.slideshowTimeout.stop(); $(".html5gallery-timer-" + instance.id, instance.$gallery).css({ width: 0 }); instance.showingPoster = false; var type = instance.elemArray[instance.curElem][ELEM_TYPE]; if (type == TYPE_VIDEO_FLASH || type == TYPE_VIDEO_MP4 || type == TYPE_VIDEO_OGG || type == TYPE_VIDEO_WEBM) instance.showVideo(true); else if (type == TYPE_VIDEO_YOUTUBE) instance.showYoutube(true); else if (type == TYPE_VIDEO_VIMEO) instance.showVimeo(true); else if (type == TYPE_EMBED_VIDEO) instance.showEmbedVideo(true); instance.checkMK() }) } instance.checkMK() }); $(imgLoader).on("error", function() { $preloading.remove(); if (instance.isFullscreen) instance.adjustFullscreen(instance.options.width, instance.options.height); $elem.html("
The requested content cannot be found
"); if (instance.options.googleanalyticsaccount && window._gaq) window._gaq.push(["_trackEvent", "Image", "Error", instance.elemArray[instance.curElem][ELEM_POSTER]]) }); imgLoader.src = this.elemArray[this.curElem][ELEM_POSTER] }, getFlashMovieObject: function(movieName) { if (window.document[movieName]) return window.document[movieName]; if (navigator.appName.indexOf("Microsoft Internet") == -1) { if (document.embeds && document.embeds[movieName]) return document.embeds[movieName] } else return document.getElementById(movieName) }, playVideo: function() { var type = this.elemArray[this.curElem][ELEM_TYPE]; if (type == TYPE_VIDEO_FLASH || type == TYPE_VIDEO_MP4 || type == TYPE_VIDEO_OGG || type == TYPE_VIDEO_WEBM) if (this.isHTML5 && $("#html5gallery-elem-html5-video-" + this.id).length > 0) $("#html5gallery-elem-html5-video-" + this.id, this.container).get(0).play(); else { var flashObj = this.getFlashMovieObject("html5gallery-elem-video-flash-" + this.id); if (flashObj && typeof flashObj.playVideo === "function") flashObj.playVideo() } }, stopAllPlaying: function() { if ($("video").length) $("video").get(0).pause(); if ($("audio").length) $("audio").get(0).pause(); if (typeof html5GalleryObjects !== "undefined" && html5GalleryObjects && html5GalleryObjects.objects) for (var i = 0; i < html5GalleryObjects.objects.length; i++) { if (html5GalleryObjects.objects[i].id == this.id) continue; try { if (html5GalleryObjects.objects[i].ytPlayer && typeof html5GalleryObjects.objects[i].ytPlayer.pauseVideo == "function") html5GalleryObjects.objects[i].ytPlayer.pauseVideo(); if (html5GalleryObjects.objects[i].vimeoPlayer) html5GalleryObjects.objects[i].vimeoPlayer.api("pause") } catch (err) {} } }, pauseVideo: function() { var type = this.elemArray[this.curElem][ELEM_TYPE]; if (type == TYPE_VIDEO_FLASH || type == TYPE_VIDEO_MP4 || type == TYPE_VIDEO_OGG || type == TYPE_VIDEO_WEBM) if (this.isHTML5 && $("#html5gallery-elem-html5-video-" + this.id).length > 0) $("#html5gallery-elem-html5-video-" + this.id, this.container).get(0).pause(); else { var flashObj = this.getFlashMovieObject("html5gallery-elem-video-flash-" + this.id); if (flashObj && typeof flashObj.pauseVideo === "function") flashObj.pauseVideo() } }, showVideo: function(autoPlay, videoSwitching) { if (this.options.stopallplaying) this.stopAllPlaying(); this.isVideoPlaying = true; if (autoPlay && this.options.autoslideandplayafterfirstplayed) { this.options.autoplayvideo = true; this.isPaused = false } this.disableTouchSwipe = true; var parent = this.isFullscreen ? this.$fullscreen : this.$gallery; var dataW = this.elemArray[this.curElem][ELEM_WIDTH]; var dataH = this.elemArray[this.curElem][ELEM_HEIGHT]; var w1, h1; if (this.isFullscreen) { var lw = this.elemArray[this.curElem][ELEM_LIGHTBOXWIDTH] ? Math.min(this.elemArray[this.curElem][ELEM_LIGHTBOXWIDTH], this.fullscreenWidth) : Math.min(dataW, this.fullscreenWidth); var lh = this.elemArray[this.curElem][ELEM_LIGHTBOXHEIGHT] ? Math.min(this.elemArray[this.curElem][ELEM_LIGHTBOXHEIGHT], this.fullscreenHeight) : Math.min(dataH, this.fullscreenHeight); this.adjustFullscreen(lw, lh); w1 = lw; h1 = lh } else { $(".html5gallery-elem-" + this.id, this.$gallery).css({ "width": this.options.width, "height": this.options.height }); w1 = this.options.width; h1 = this.options.height } var timeStamp = -1; if (videoSwitching && $(".html5gallery-elem-" + this.id, parent).find("video").length) timeStamp = $(".html5gallery-elem-" + this.id, parent).find("video:first").get(0).currentTime; $(".html5gallery-elem-" + this.id, parent).html("
" + this.options.watermarkcode); this.isHTML5 = false; if (this.options.isIE678 || this.options.isIE9 && this.options.useflashonie9 || this.options.isIE10 && this.options.useflashonie10 || this.options.isIE11 && this.options.useflashonie11) this.isHTML5 = false; else if (this.options.isMobile) this.isHTML5 = true; else if ((this.options.html5player || !this.options.flashInstalled) && this.options.html5VideoSupported) { this.isHTML5 = true; if (this.options.isFirefox || this.options.isOpera) if (!this.elemArray[this.curElem][ELEM_SRC_WEBM] && !this.elemArray[this.curElem][ELEM_SRC_OGG] && (!this.options.canplaymp4 || this.options.useflashformp4onfirefox)) this.isHTML5 = false } if (this.isHTML5) { var videoSrc = this.elemArray[this.curElem][ELEM_SRC]; var videoHd = this.elemArray[this.curElem][ELEM_HD]; if (this.options.isFirefox || this.options.isOpera) { if (this.elemArray[this.curElem][ELEM_SRC_WEBM]) videoSrc = this.elemArray[this.curElem][ELEM_SRC_WEBM]; else if (this.elemArray[this.curElem][ELEM_SRC_OGG]) videoSrc = this.elemArray[this.curElem][ELEM_SRC_OGG]; if (this.elemArray[this.curElem][ELEM_HD_WEBM]) videoHd = this.elemArray[this.curElem][ELEM_HD_WEBM]; else if (this.elemArray[this.curElem][ELEM_HD_OGG]) videoHd = this.elemArray[this.curElem][ELEM_HD_OGG] } this.embedHTML5Video($(".html5gallery-elem-video-" + this.id, parent), w1, h1, videoSrc, videoHd, autoPlay, timeStamp, videoSwitching) } else { var videoFile = this.elemArray[this.curElem][ELEM_SRC]; if (videoFile.charAt(0) != "/" && videoFile.substring(0, 5) != "http:" && videoFile.substring(0, 6) != "https:") videoFile = this.options.htmlfolder + videoFile; var hdFile = ""; if (this.elemArray[this.curElem][ELEM_HD]) { hdFile = this.elemArray[this.curElem][ELEM_HD]; if (hdFile.charAt(0) != "/" && hdFile.substring(0, 5) != "http:" && hdFile.substring(0, 6) != "https:") hdFile = this.options.htmlfolder + hdFile } var flashvars = { width: w1, height: h1, hidecontrols: this.options.videohidecontrols ? "1" : "0", hideplaybutton: "0", videofile: videoFile, hdfile: hdFile, ishd: this.isHd ? "1" : "0", autoplay: autoPlay ? "1" : "0", errorcss: ".html5box-error" + this.options.errorcss, id: this.id }; if (this.elemArray[this.curElem][ELEM_LINK]) { flashvars.clickthrough = this.elemArray[this.curElem][ELEM_LINK]; if (this.elemArray[this.curElem][ELEM_LINKTARGET]) flashvars.clickthroughtarget = this.elemArray[this.curElem][ELEM_LINKTARGET] } this.embedFlash($(".html5gallery-elem-video-" + this.id, parent), "100%", "100%", this.options.jsfolder + "html5boxplayer.swf", "transparent", flashvars, "html5gallery-elem-video-flash-" + this.id) } if (this.options.googleanalyticsaccount && window._gaq) window._gaq.push(["_trackEvent", "Video", "Play", this.elemArray[this.curElem][ELEM_SRC]]) }, showSWF: function() { var parent = this.isFullscreen ? this.$fullscreen : this.$gallery; var w1 = this.elemArray[this.curElem][ELEM_WIDTH]; var h1 = this.elemArray[this.curElem][ELEM_HEIGHT]; if (this.isFullscreen) this.adjustFullscreen(w1, h1); else $(".html5gallery-elem-" + this.id, this.$gallery).css({ "width": this.options.width, "height": this.options.height }); var t1 = this.isFullscreen ? 0 : Math.round((this.options.height - h1) / 2) + (this.options.slideshadow ? 4 : 0); var l1 = this.isFullscreen ? 0 : Math.round((this.options.width - w1) / 2) + (this.options.slideshadow ? 4 : 0); $(".html5gallery-elem-" + this.id, parent).html("
" + this.options.watermarkcode); this.embedFlash($(".html5gallery-elem-flash-" + this.id, parent), w1, h1, this.elemArray[this.curElem][ELEM_SRC], "window", {}, "html5gallery-elem-flash-object-" + this.id); if (this.options.googleanalyticsaccount && window._gaq) window._gaq.push(["_trackEvent", "Flash", "Play", this.elemArray[this.curElem][ELEM_SRC]]) }, prepareYoutubeHref: function(href) { var youtubeId = href.match(/(\?v=|\/\d\/|\/embed\/|\/v\/|\.be\/)([a-zA-Z0-9\-\_]+)/)[2]; var result = "https://www.youtube.com/embed/" + youtubeId; var params = this.getYoutubeParams(href); var first = true; for (var key in params) { if (first) { result += "?"; first = false } else result += "&"; result += key + "=" + params[key] } return result }, getYoutubeParams: function(href) { var result = {}; if (href.indexOf("?") < 0) return result; var params = href.substring(href.indexOf("?") + 1).split("&"); for (var i = 0; i < params.length; i++) { var value = params[i].split("="); if (value && value.length == 2 && value[0].toLowerCase() != "v") result[value[0].toLowerCase()] = value[1] } return result }, initYoutubeApi: function() { var i, initYoutube = false; var initVimeo = false; for (i = 0; i < this.elemArray.length; i++) if (this.elemArray[i][ELEM_TYPE] == TYPE_VIDEO_YOUTUBE) initYoutube = true; else if (this.elemArray[i][ELEM_TYPE] == TYPE_VIDEO_VIMEO) initVimeo = true; if (initYoutube) { var tag = document.createElement("script"); tag.src = "https://www.youtube.com/iframe_api"; var firstScriptTag = document.getElementsByTagName("script")[0]; firstScriptTag.parentNode.insertBefore(tag, firstScriptTag) } if (initVimeo) { var tag = document.createElement("script"); tag.src = this.options.jsfolder + "froogaloop2.min.js"; var firstScriptTag = document.getElementsByTagName("script")[0]; firstScriptTag.parentNode.insertBefore(tag, firstScriptTag) } }, showEmbedVideo: function(autoPlay) { if (this.options.stopallplaying) this.stopAllPlaying(); this.isVideoPlaying = true; if (autoPlay && this.options.autoslideandplayafterfirstplayed) { this.options.autoplayvideo = true; this.isPaused = false } var parent = this.isFullscreen ? this.$fullscreen : this.$gallery; var dataW = this.elemArray[this.curElem][ELEM_WIDTH]; var dataH = this.elemArray[this.curElem][ELEM_HEIGHT]; var w1, h1; if (this.isFullscreen) { var lw = this.elemArray[this.curElem][ELEM_LIGHTBOXWIDTH] ? Math.min(this.elemArray[this.curElem][ELEM_LIGHTBOXWIDTH], this.fullscreenWidth) : Math.min(dataW, this.fullscreenWidth); var lh = this.elemArray[this.curElem][ELEM_LIGHTBOXHEIGHT] ? Math.min(this.elemArray[this.curElem][ELEM_LIGHTBOXHEIGHT], this.fullscreenHeight) : Math.min(dataH, this.fullscreenHeight); this.adjustFullscreen(lw, lh); w1 = lw; h1 = lh } else { $(".html5gallery-elem-" + this.id, this.$gallery).css({ "width": this.options.width, "height": this.options.height }); w1 = this.options.width; h1 = this.options.height } var src = this.elemArray[this.curElem][ELEM_SRC]; $(".html5gallery-elem-" + this.id, parent).html("
" + this.options.watermarkcode); if (src.match(/\:\/\/.*(dai\.ly)/i)) { var id = src.match(/(dai\.ly\/)([a-zA-Z0-9\-\_]+)/)[2]; src = "https://www.dailymotion.com/embed/video/" + id } if (autoPlay) if (src.indexOf("?") < 0) src += "?autoplay=1"; else src += "&autoplay=1"; $("#html5gallery-elem-video-" + this.id, parent).html(""); if (this.options.googleanalyticsaccount && window._gaq) window._gaq.push(["_trackEvent", "Video", "Play", this.elemArray[this.curElem][ELEM_SRC]]) }, showYoutube: function(autoPlay) { if (this.options.stopallplaying) this.stopAllPlaying(); this.isVideoPlaying = true; if (autoPlay && this.options.autoslideandplayafterfirstplayed) { this.options.autoplayvideo = true; this.isPaused = false } var parent = this.isFullscreen ? this.$fullscreen : this.$gallery; var dataW = this.elemArray[this.curElem][ELEM_WIDTH]; var dataH = this.elemArray[this.curElem][ELEM_HEIGHT]; var w1, h1; if (this.isFullscreen) { var lw = this.elemArray[this.curElem][ELEM_LIGHTBOXWIDTH] ? Math.min(this.elemArray[this.curElem][ELEM_LIGHTBOXWIDTH], this.fullscreenWidth) : Math.min(dataW, this.fullscreenWidth); var lh = this.elemArray[this.curElem][ELEM_LIGHTBOXHEIGHT] ? Math.min(this.elemArray[this.curElem][ELEM_LIGHTBOXHEIGHT], this.fullscreenHeight) : Math.min(dataH, this.fullscreenHeight); this.adjustFullscreen(lw, lh); w1 = lw; h1 = lh } else { $(".html5gallery-elem-" + this.id, this.$gallery).css({ "width": this.options.width, "height": this.options.height }); w1 = this.options.width; h1 = this.options.height } var src = this.elemArray[this.curElem][ELEM_SRC]; $(".html5gallery-elem-" + this.id, parent).html("
" + this.options.watermarkcode); var instance = this; if (!ASYouTubeIframeAPIReady) { ASYouTubeTimeout += 100; if (ASYouTubeTimeout < 3E3) { setTimeout(function() { instance.showYoutube(autoPlay) }, 100); return } } if (ASYouTubeIframeAPIReady && !this.options.isMobile && !this.options.isIE6 && !this.options.isIE7) { var id = this.elemArray[this.curElem][ELEM_SRC].match(/(\?v=|\/\d\/|\/embed\/|\/v\/|\.be\/)([a-zA-Z0-9\-\_]+)/)[2]; var onPlayReady = null; if (autoPlay) onPlayReady = function(event) { event.target.playVideo() }; var youtubeParams = this.getYoutubeParams(this.elemArray[this.curElem][ELEM_SRC]); youtubeParams = $.extend({ "html5": 1, "controls": instance.options.videohidecontrols ? "0" : "1", "showinfo": instance.options.videohidecontrols ? "0" : "1", "autoplay": autoPlay ? 1 : 0, "rel": 0, "wmode": "transparent" }, youtubeParams); this.ytPlayer = new YT.Player("html5gallery-elem-video-" + this.id, { width: w1, height: h1, videoId: id, playerVars: youtubeParams, events: { "onReady": onPlayReady, "onStateChange": function(event) { if (event.data == YT.PlayerState.ENDED) { instance.onVideoEnd(); if (!instance.isPaused) instance.slideRun(-1) } } } }) } else { src = this.prepareYoutubeHref(src); if (autoPlay) if (src.indexOf("?") < 0) src += "?autoplay=1"; else src += "&autoplay=1"; if (src.indexOf("?") < 0) src += "?wmode=transparent&rel=0"; else src += "&wmode=transparent&rel=0"; if (instance.options.videohidecontrols) src += "&controls=0&showinfo=0"; $("#html5gallery-elem-video-" + this.id, parent).html("") } if (this.options.googleanalyticsaccount && window._gaq) window._gaq.push(["_trackEvent", "Video", "Play", this.elemArray[this.curElem][ELEM_SRC]]) }, showVimeo: function(autoPlay) { if (this.options.stopallplaying) this.stopAllPlaying(); this.isVideoPlaying = true; if (autoPlay && this.options.autoslideandplayafterfirstplayed) { this.options.autoplayvideo = true; this.isPaused = false } var instance = this; if (typeof $f !== "function") { ASVimeoTimeout += 100; if (ASVimeoTimeout < 3E3) { setTimeout(function() { instance.showVimeo(autoPlay) }, 100); return } } var parent = this.isFullscreen ? this.$fullscreen : this.$gallery; var dataW = this.elemArray[this.curElem][ELEM_WIDTH]; var dataH = this.elemArray[this.curElem][ELEM_HEIGHT]; var w1, h1; if (this.isFullscreen) { var lw = this.elemArray[this.curElem][ELEM_LIGHTBOXWIDTH] ? Math.min(this.elemArray[this.curElem][ELEM_LIGHTBOXWIDTH], this.fullscreenWidth) : Math.min(dataW, this.fullscreenWidth); var lh = this.elemArray[this.curElem][ELEM_LIGHTBOXHEIGHT] ? Math.min(this.elemArray[this.curElem][ELEM_LIGHTBOXHEIGHT], this.fullscreenHeight) : Math.min(dataH, this.fullscreenHeight); this.adjustFullscreen(lw, lh); w1 = lw; h1 = lh } else { $(".html5gallery-elem-" + this.id, this.$gallery).css({ "width": this.options.width, "height": this.options.height }); w1 = this.options.width; h1 = this.options.height } var src = this.elemArray[this.curElem][ELEM_SRC]; if (src.indexOf("?") < 0) src += "?"; else src += "&"; if (autoPlay && !this.options.isAndroid) src += "autoplay=1"; else src += "autoplay=0"; src += "&api=1&player_id=html5gallery_vimeo_" + this.id; $(".html5gallery-elem-" + this.id, parent).html("
" + this.options.watermarkcode); $(".html5gallery-elem-video-" + this.id, parent).html(""); if (typeof $f === "function" && autoPlay && !this.options.isAndroid) { var vimeoIframe = $("#html5gallery_vimeo_" + this.id)[0]; var instance = this; instance.vimeoPlayer = $f(vimeoIframe); instance.vimeoPlayer.addEvent("ready", function() { instance.vimeoPlayer.addEvent("finish", function(id) { instance.onVideoEnd(); if (!instance.isPaused) instance.slideRun(-1) }) }) } if (this.options.googleanalyticsaccount && window._gaq) window._gaq.push(["_trackEvent", "Video", "Play", this.elemArray[this.curElem][ELEM_SRC]]) }, showIframe: function() { var parent = this.isFullscreen ? this.$fullscreen : this.$gallery; var dataW = this.elemArray[this.curElem][ELEM_WIDTH]; var dataH = this.elemArray[this.curElem][ELEM_HEIGHT]; var w1, h1; if (this.isFullscreen) { var lw = this.elemArray[this.curElem][ELEM_LIGHTBOXWIDTH] ? Math.min(this.elemArray[this.curElem][ELEM_LIGHTBOXWIDTH], this.fullscreenWidth) : Math.min(dataW, this.fullscreenWidth); var lh = this.elemArray[this.curElem][ELEM_LIGHTBOXHEIGHT] ? Math.min(this.elemArray[this.curElem][ELEM_LIGHTBOXHEIGHT], this.fullscreenHeight) : Math.min(dataH, this.fullscreenHeight); this.adjustFullscreen(lw, lh); w1 = lw; h1 = lh } else { $(".html5gallery-elem-" + this.id, this.$gallery).css({ "width": this.options.width, "height": this.options.height }); w1 = this.options.width; h1 = this.options.height } var src = this.elemArray[this.curElem][ELEM_SRC]; $(".html5gallery-elem-" + this.id, parent).html("
" + this.options.watermarkcode); $(".html5gallery-elem-iframe-" + this.id, parent).html(""); if (this.options.googleanalyticsaccount && window._gaq) window._gaq.push(["_trackEvent", "Iframe", "Play", this.elemArray[this.curElem][ELEM_SRC]]) }, checkType: function(href) { if (!href) return -1; if (href.match(/\.(jpg|gif|png|bmp|jpeg)(.*)?$/i)) return TYPE_IMAGE; if (href.match(/[^\.]\.(swf)\s*$/i)) return TYPE_SWF; if (href.match(/[^\.]\.(mp3)\s*$/i)) return TYPE_MP3; if (href.match(/[^\.]\.(pdf)\s*$/i)) return TYPE_PDF; if (href.match(/\.(flv)(.*)?$/i)) return TYPE_VIDEO_FLASH; if (href.match(/\.(mp4|m4v)(.*)?$/i)) return TYPE_VIDEO_MP4; if (href.match(/\.(ogv|ogg)(.*)?$/i)) return TYPE_VIDEO_OGG; if (href.match(/\.(webm)(.*)?$/i)) return TYPE_VIDEO_WEBM; if (href.match(/\:\/\/.*(youtube\.com)/i) || href.match(/\:\/\/.*(youtu\.be)/i)) return TYPE_VIDEO_YOUTUBE; if (href.match(/\:\/\/.*(vimeo\.com)/i)) return TYPE_VIDEO_VIMEO; if (href.match(/\:\/\/.*(dailymotion\.com)/i) || href.match(/\:\/\/.*(dai\.ly)/i)) return TYPE_EMBED_VIDEO; return TYPE_IMAGE }, onChange: function() { if (this.options.onchange && window[this.options.onchange] && typeof window[this.options.onchange] == "function") window[this.options.onchange](this.elemArray[this.curElem].concat([this.id])) }, onSlideshowOver: function() { if (this.options.onslideshowover && window[this.options.onslideshowover] && typeof window[this.options.onslideshowover] == "function") window[this.options.onslideshowover](this.elemArray[this.curElem]) }, onThumbOver: function(index) { if (this.options.onthumbover && window[this.options.onthumbover] && typeof window[this.options.onthumbover] == "function") window[this.options.onthumbover](this.elemArray[index]) }, onThumbClick: function(index) { if (this.options.onthumbclick && window[this.options.onthumbclick] && typeof window[this.options.onthumbclick] == "function") window[this.options.onthumbclick](this.elemArray[index].concat([this.id])); if (this.options.thumbjumptotop) if (this.options.thumbjumpanchor && this.options.thumbjumpanchor.length > 0 && $("#" + this.options.thumbjumpanchor).length > 0) { var t0 = $("#" + this.options.thumbjumpanchor).offset().top; $(window).scrollTop(t0) } else if (this.options.thumbjumpposition >= 0) $(window).scrollTop(this.options.thumbjumpposition); else { var t = this.container.offset().top; if (t < $(window).scrollTop()) $(window).scrollTop(t) } }, onVideoEnd: function() { if (this.options.onvideoend && window[this.options.onvideoend] && typeof window[this.options.onvideoend] == "function") window[this.options.onvideoend](this.elemArray[this.curElem]) }, embedHTML5Video: function($container, w, h, src, hd, autoPlay, timeStamp, videoSwitching) { var instance = this; if ((this.options.isIE11 || this.options.isIE) && this.options.usenativehtml5controlsonie || this.options.isFirefox && this.options.usenativehtml5controlsonfirefox) this.options.nativehtml5controls = true; $container.html("
"); $("video", $container).get(0).setAttribute("src", (hd && this.isHd ? hd : src) + (timeStamp > 0 ? "#t=" + timeStamp : "")); if (!this.options.nativehtml5controls && !this.options.videohidecontrols) { $("video", $container).data("src", src); $("video", $container).data("hd", hd); $("video", $container).data("ishd", this.isHd); $("video", $container).addHTML5VideoControls(this.options.skinfolder, this, "html5gallery-elem-html5-video-" + this.id) } if (this.elemArray[this.curElem][ELEM_LINK]) { $("video", $container).css({ cursor: "pointer" }); $("video", $container).off("click").on("click", function() { if (instance.elemArray[instance.curElem][ELEM_LINK]) if (instance.elemArray[instance.curElem][ELEM_LINKTARGET]) window.open(instance.elemArray[instance.curElem][ELEM_LINK], instance.elemArray[instance.curElem][ELEM_LINKTARGET]); else window.open(instance.elemArray[instance.curElem][ELEM_LINK]) }) } if (autoPlay || videoSwitching) $("video", $container).get(0).play(); $("video", $container).off("ended").on("ended", function() { instance.onVideoEnd(); if (!instance.isPaused) instance.slideRun(-1) }) }, embedFlash: function($container, w, h, src, wmode, flashVars, objectId) { if (this.options.flashInstalled) { var htmlOptions = { pluginspage: "http://www.adobe.com/go/getflashplayer", quality: "high", allowFullScreen: "true", allowScriptAccess: "always", type: "application/x-shockwave-flash" }; htmlOptions.width = w; htmlOptions.height = h; htmlOptions.src = src; htmlOptions.wmode = wmode; $container.append('
'); window.HTML5GallerySWFObject = HTML5GallerySWFObjectFunc(); window.HTML5GallerySWFObject.embedSWF(src, objectId, w, h, "9.0.0", false, flashVars, htmlOptions, {}) } else $container.html("
The required Adobe Flash Player plugin is not installed
Get Adobe Flash player
") } }; this.each(function() { var $this = $(this); options = options || {}; for (var key in options) if (key.toLowerCase() !== key) { options[key.toLowerCase()] = options[key]; delete options[key] } if ($(this).data("donotinit") && (!options || !options["forceinit"])) return; if ($(this).data("inited")) return; $(this).data("inited", 1); this.options = $.extend({}, options); var instance = this; $.each($this.data(), function(key, value) { instance.options[key.toLowerCase()] = value }); if ("skin" in this.options) this.options.skin = this.options.skin.toLowerCase(); var commonOptions = { freelink: "http://www.wonderplugin.com/wordpress-gallery/", watermark: "", watermarklink: "", skin: "horizontal", googlefonts: "", mobileresizeevent: true, enabletouchswipe: true, enabletouchswipeonandroid: true, disablehovereventontouch: false, responsive: false, responsivefullscreen: false, screenquery: {}, src: "", xml: "", xmlnocache: true, stopallplaying: false, lightbox: false, autoslide: false, slideshowinterval: 6E3, random: false, borderradius: 0, loop: 0, pauseonmouseover: false, notupdatecarousel: false, updatecarouselinterval: 6E4, autoplayvideo: false, html5player: true, playvideoonclick: true, videohidecontrols: false, useflashformp4onfirefox: false, nativehtml5controls: false, hddefault: false, useflashonie9: true, useflashonie10: false, useflashonie11: false, usenativehtml5controlsonie: false, usenativehtml5controlsonfirefox: false, autoslideandplayafterfirstplayed: false, lazyloadtags: "lazy-src,lazyload-src,cfsrc,src", linkonlyonvideo: true, hidetitlewhenvideoisplaying: false, hideplaypausefullscreenwhenvideoisplaying: false, lightboxborder: 8, lightboxtextheight: 72, lightboxmargin: 12, lightboxbgcolor: "#fff", lightboxshowtitle: true, lightboxtitlecss: " {color:#333333; font:bold 12px Arial,Helvetica,sans-serif; overflow:hidden; white-space:normal; line-height:18px;}", lightboxtitlelinkcss: " a {color:#333333;}", lightboxshowdescription: true, lightboxdescriptioncss: " {color:#333333; font:normal 12px Arial,Helvetica,sans-serif; overflow:hidden; white-space:normal; line-height:14px;}", lightboxdescriptionlinkcss: " a {color:#333333;}", effect: "fade", easing: "easeOutCubic", duration: 1500, slide: { duration: 1E3, easing: "easeOutExpo" }, width: 480, height: 270, showtimer: true, resizemode: "fit", showtitle: true, titleheight: 45, errorcss: " {text-align:center; color:#ff0000; font-size:14px; font-family:Arial, sans-serif;}", shownumbering: false, numberingformat: "%NUM / %TOTAL", googleanalyticsaccount: "", showsocialmedia: false, socialheight: 30, socialurlforeach: false, showfacebooklike: true, facebooklikeurl: "", twitterurl: "", twitterusername: "", twittervia: "html5box", showgoogleplus: true, googleplusurl: "", initsocial: false, showsocial: false, socialmode: "mouseover", socialposition: "position:absolute;top:8px;right:8px;", socialpositionlightbox: "position:absolute;top:8px;right:8px;", socialdirection: "horizontal", socialbuttonsize: 32, socialbuttonfontsize: 18, socialrotateeffect: true, showfacebook: true, showtwitter: true, showpinterest: true, showimagetoolbox: "always", imagetoolboxstyle: "side", imagetoolboxmode: "mouseover", showplaybutton: true, showprevbutton: true, shownextbutton: true, showfullscreenbutton: true, showplaypausefullscreenforall: false, showcarouselforsingle: false, carouselbgtransparent: true, carouselbgcolorstart: "#ffffff", carouselbgcolorend: "#ffffff", carouseltopborder: "#ffffff", carouselbottomborder: "#ffffff", carouselbgimage: "", carouseleasing: "easeOutCirc", carouselarrowwidth: 32, carouselarrowheight: 32, thumbresponsive: "samesize", thumbcolumns: 5, thumbcolumnsresponsive: false, thumbmediumcolumns: 3, thumbmediumsize: 800, thumbsmallcolumns: 2, thumbsmallsize: 480, thumbmediumwidth: 64, thumbmediumheight: 64, thumbsmallwidth: 48, thumbsmallheight: 48, addthumbnailtitle: false, carouselmultirows: false, thumbrowgap: 16, thumblinkintitle: false, thumbjumptotop: false, thumbjumpposition: -1, thumbjumpanchor: "", youtubeapikey: "", youtubeplaylistid: "", youtubeplaylistmaxresults: "", youtubeplaylistusemaxres: true, titlesmallscreen: false, titlesmallscreenwidth: 640, titleheightsmallscreen: 148, version: "3.6", fv: true, fm: "87,111,114,100,80,114,101,115,115,32,71,97,108,108,101,114,121,32,70,114,101,101,32,86,101,114,115,105,111,110" }; var horizontalSkinOptions = { skinfolder: "skins/horizontal/", padding: 6, bgcolor: "#ffffff", bgimage: "", galleryshadow: true, slideshadow: false, showsocialmedia: false, headerpos: "top", showdescription: true, titleoverlay: true, titleautohide: true, titlecss: " {color:#ffffff; font-size:14px; font-family:Arial,Helvetica,sans-serif; overflow:hidden; text-align:left; padding:10px 0px 10px 10px; background:rgb(102, 102, 102) transparent; background: rgba(102, 102, 102, 0.6); filter:'progid:DXImageTransform.Microsoft.gradient(startColorstr=#99666666, endColorstr=#99666666)'; -ms-filter:'progid:DXImageTransform.Microsoft.gradient(startColorstr=#99666666, endColorstr=#99666666)'; }", titlecsslink: " a {color:#ffffff;}", descriptioncss: " {color:#ffffff; font-size:13px; font-family:Arial,Helvetica,sans-serif; overflow:hidden; text-align:left; padding:0px 0px 10px 10px; background:rgb(102, 102, 102) transparent; background: rgba(102, 102, 102, 0.6); filter:'progid:DXImageTransform.Microsoft.gradient(startColorstr=#99666666, endColorstr=#99666666)'; -ms-filter:'progid:DXImageTransform.Microsoft.gradient(startColorstr=#99666666, endColorstr=#99666666)'; }", descriptioncsslink: " a {color:#ffffff;}", showcarousel: true, carouselmargin: 0, carouselbgtransparent: false, carouselbgcolorstart: "#494f54", carouselbgcolorend: "#292c31", carouseltopborder: "#666666", carouselbottomborder: "#111111", thumbwidth: 64, thumbheight: 48, thumbgap: 4, thumbmargin: 6, thumbunselectedimagebordercolor: "#ffffff", thumbimageborder: 1, thumbimagebordercolor: "", thumbshowplayonvideo: true, thumbshadow: false, thumbopacity: 0.8 }; var lightSkinOptions = { padding: 12, skinfolder: "skins/light/", bgcolor: "", bgimage: "", galleryshadow: false, slideshadow: true, showsocialmedia: false, headerpos: "top", showdescription: true, titleoverlay: true, titleautohide: true, titlecss: " {color:#ffffff; font-size:14px; font-family:Arial,Helvetica,sans-serif; overflow:hidden; white-space:normal; text-align:left; padding:10px 0px 10px 10px; background:rgb(102, 102, 102) transparent; background: rgba(102, 102, 102, 0.6); filter:'progid:DXImageTransform.Microsoft.gradient(startColorstr=#99666666, endColorstr=#99666666)'; -ms-filter:'progid:DXImageTransform.Microsoft.gradient(startColorstr=#99666666, endColorstr=#99666666)'; }", titlecsslink: " a {color:#ffffff;}", descriptioncss: " {color:#ffffff; font-size:12px; font-family:Arial,Helvetica,sans-serif; overflow:hidden; white-space:normal; text-align:left; padding:0px 0px 10px 10px; background:rgb(102, 102, 102) transparent; background: rgba(102, 102, 102, 0.6); filter:'progid:DXImageTransform.Microsoft.gradient(startColorstr=#99666666, endColorstr=#99666666)'; -ms-filter:'progid:DXImageTransform.Microsoft.gradient(startColorstr=#99666666, endColorstr=#99666666)'; }", descriptioncsslink: " a {color:#ffffff;}", showcarousel: true, carouselmargin: 10, carouselbgtransparent: true, thumbwidth: 48, thumbheight: 48, thumbgap: 8, thumbmargin: 12, thumbunselectedimagebordercolor: "#fff", thumbimageborder: 2, thumbimagebordercolor: "#fff", thumbshowplayonvideo: true, thumbshadow: true, thumbopacity: 0.8 }; var mediapageSkinOptions = { padding: 0, skinfolder: "skins/mediapage/", bgcolor: "", bgimage: "", galleryshadow: false, slideshadow: false, showsocialmedia: false, headerpos: "top", showdescription: true, titleoverlay: true, titleautohide: true, titlecss: " {color:#ffffff; font-size:14px; font-family:Arial,Helvetica,sans-serif; overflow:hidden; white-space:normal; text-align:left; padding:10px 0px 10px 10px; background:rgb(102, 102, 102) transparent; background: rgba(102, 102, 102, 0.6); filter:'progid:DXImageTransform.Microsoft.gradient(startColorstr=#99666666, endColorstr=#99666666)'; -ms-filter:'progid:DXImageTransform.Microsoft.gradient(startColorstr=#99666666, endColorstr=#99666666)'; }", titlecsslink: " a {color:#ffffff;}", descriptioncss: " {color:#ffffff; font-size:12px; font-family:Arial,Helvetica,sans-serif; overflow:hidden; white-space:normal; text-align:left; padding:0px 0px 10px 10px; background:rgb(102, 102, 102) transparent; background: rgba(102, 102, 102, 0.6); filter:'progid:DXImageTransform.Microsoft.gradient(startColorstr=#99666666, endColorstr=#99666666)'; -ms-filter:'progid:DXImageTransform.Microsoft.gradient(startColorstr=#99666666, endColorstr=#99666666)'; }", descriptioncsslink: " a {color:#ffffff;}", showcarousel: true, carouselmargin: 24, carouselmultirows: true, thumbrowgap: 16, carouselbgtransparent: true, thumbwidth: 120, thumbheight: 60, thumbgap: 10, thumbmargin: 12, thumbunselectedimagebordercolor: "#fff", thumbimageborder: 0, thumbimagebordercolor: "#fff", thumbshowplayonvideo: true, thumbshadow: false, thumbopacity: 0.8, thumbjumptotop: true, thumbshowtitle: true, thumbtitlecss: "{text-align:center; color:#000; font-size:12px; font-family:Arial,Helvetica,sans-serif; overflow:hidden;}", thumbtitleheight: 24 }; var gallerySkinOptions = { padding: 12, skinfolder: "skins/gallery/", bgcolor: "", bgimage: "", galleryshadow: false, slideshadow: true, showsocialmedia: false, headerpos: "top", showdescription: true, titleoverlay: true, titleautohide: true, titlecss: " {color:#ffffff; font-size:14px; font-family:Arial,Helvetica,sans-serif; overflow:hidden; white-space:normal; text-align:left; padding:10px 0px 10px 10px; background:rgb(102, 102, 102) transparent; background: rgba(102, 102, 102, 0.6); filter:'progid:DXImageTransform.Microsoft.gradient(startColorstr=#99666666, endColorstr=#99666666)'; -ms-filter:'progid:DXImageTransform.Microsoft.gradient(startColorstr=#99666666, endColorstr=#99666666)'; }", titlecsslink: " a {color:#ffffff;}", descriptioncss: " {color:#ffffff; font-size:12px; font-family:Arial,Helvetica,sans-serif; overflow:hidden; white-space:normal; text-align:left; padding:0px 0px 10px 10px; background:rgb(102, 102, 102) transparent; background: rgba(102, 102, 102, 0.6); filter:'progid:DXImageTransform.Microsoft.gradient(startColorstr=#99666666, endColorstr=#99666666)'; -ms-filter:'progid:DXImageTransform.Microsoft.gradient(startColorstr=#99666666, endColorstr=#99666666)'; }", descriptioncsslink: " a {color:#ffffff;}", showcarousel: true, carouselmargin: 10, carouselbgtransparent: true, thumbwidth: 120, thumbheight: 60, thumbgap: 8, thumbmargin: 12, thumbunselectedimagebordercolor: "#fff", thumbimageborder: 2, thumbimagebordercolor: "#fff", thumbshowplayonvideo: true, thumbshadow: true, thumbopacity: 0.8, thumbshowtitle: true, thumbtitlecss: "{text-align:center; color:#000; font-size:12px; font-family:Arial,Helvetica,sans-serif; overflow:hidden; white-space:normal;}", thumbtitleheight: 18 }; var galleryWithTextSkinOptions = { padding: 12, skinfolder: "skins/gallery/", bgcolor: "", bgimage: "", galleryshadow: false, slideshadow: true, showsocialmedia: false, headerpos: "bottom", showdescription: true, titleoverlay: false, titleheight: 72, titleautohide: true, titlecss: "{color:#333;font-size:14px;font-family:Arial,Helvetica,sans-serif;overflow:hidden;text-align:center;padding:16px 8px 4px 8px;}", titlecsslink: "a{color:#333;}", descriptioncss: "{color:#333;font-size:12px;font-family:Arial,Helvetica,sans-serif;overflow:hidden;text-align:center;padding:4px 8px; }", descriptioncsslink: "a{color:#333;}", titlesmallscreen: true, showcarousel: true, carouselmargin: 10, carouselbgtransparent: true, thumbwidth: 120, thumbheight: 60, thumbgap: 8, thumbmargin: 12, thumbunselectedimagebordercolor: "#fff", thumbimageborder: 2, thumbimagebordercolor: "#fff", thumbshowplayonvideo: true, thumbshadow: true, thumbopacity: 0.8, thumbshowtitle: false, thumbtitlecss: "{text-align:center; color:#000; font-size:12px; font-family:Arial,Helvetica,sans-serif; overflow:hidden; white-space:normal;}", thumbtitleheight: 18 }; var galleryWithTextBottomSkinOptions = { padding: 12, skinfolder: "skins/gallery/", bgcolor: "", bgimage: "", galleryshadow: false, slideshadow: true, showsocialmedia: false, headerpos: "bottomoutside", showdescription: true, titleoverlay: false, titleheight: 72, titleautohide: true, titlecss: "{color:#333;font-size:14px;font-family:Arial,Helvetica,sans-serif;overflow:hidden;text-align:center;padding:16px 8px 4px 8px;}", titlecsslink: "a{color:#333;}", descriptioncss: "{color:#333;font-size:12px;font-family:Arial,Helvetica,sans-serif;overflow:hidden;text-align:center;padding:4px 8px; }", descriptioncsslink: "a{color:#333;}", titlesmallscreen: true, showcarousel: true, carouselmargin: 10, carouselbgtransparent: true, thumbwidth: 120, thumbheight: 60, thumbgap: 8, thumbmargin: 12, thumbunselectedimagebordercolor: "#fff", thumbimageborder: 2, thumbimagebordercolor: "#fff", thumbshowplayonvideo: true, thumbshadow: true, thumbopacity: 0.8, thumbshowtitle: true, thumbtitlecss: "{text-align:center; color:#000; font-size:12px; font-family:Arial,Helvetica,sans-serif; overflow:hidden; white-space:normal;}", thumbtitleheight: 18 }; var darknessSkinOptions = { skinfolder: "skins/darkness/", padding: 12, bgcolor: "#444444", bgimage: "background.jpg", galleryshadow: false, slideshadow: false, headerpos: "bottom", showdescription: false, titleoverlay: false, titleautohide: false, titlecss: " {color:#ffffff; font-size:16px; font-family:Arial,Helvetica,sans-serif; overflow:hidden; white-space:normal; text-align:left; padding:10px 0px;}", titlecsslink: " a {color:#ffffff;}", descriptioncss: " {color:#ffffff; font-size:12px; font-family:Arial,Helvetica,sans-serif; overflow:hidden; white-space:normal; text-align:left; padding:0px 0px 10px 0px;}", descriptioncsslink: " a {color:#ffffff;}", showcarousel: true, carouselmargin: 8, carouselbgtransparent: false, carouselbgcolorstart: "#494f54", carouselbgcolorend: "#292c31", carouseltopborder: "#666666", carouselbottomborder: "#111111", thumbwidth: 64, thumbheight: 48, thumbgap: 4, thumbmargin: 6, thumbunselectedimagebordercolor: "#ffffff", thumbimageborder: 1, thumbimagebordercolor: "", thumbshowplayonvideo: true, thumbshadow: false, thumbopacity: 0.8 }; var verticalSkinOptions = { skinfolder: "skins/vertical/", padding: 12, bgcolor: "#444444", bgimage: "background.jpg", galleryshadow: false, slideshadow: false, headerpos: "bottom", showdescription: false, titleoverlay: false, titleautohide: false, titlecss: " {color:#ffffff; font-size:16px; font-family:Arial,Helvetica,sans-serif; overflow:hidden; white-space:normal; text-align:left; padding:10px 0px;}", titlecsslink: " a {color:#ffffff;}", descriptioncss: " {color:#ffffff; font-size:12px; font-family:Arial,Helvetica,sans-serif; overflow:hidden; white-space:normal; text-align:left; padding:0px 0px 10px 0px;}", descriptioncsslink: " a {color:#ffffff;}", showcarousel: true, carouselmargin: 8, carouselposition: "right", carouselbgtransparent: false, carouselbgcolorstart: "#494f54", carouselbgcolorend: "#292c31", carouseltopborder: "#666666", carouselbottomborder: "#111111", carouselhighlightbgcolorstart: "#999999", carouselhighlightbgcolorend: "#666666", carouselhighlighttopborder: "#cccccc", carouselhighlightbottomborder: "#444444", carouselhighlightbgimage: "", thumbwidth: 148, thumbheight: 48, thumbgap: 2, thumbmargin: 6, thumbunselectedimagebordercolor: "", thumbimageborder: 1, thumbimagebordercolor: "#cccccc", thumbshowplayonvideo: true, thumbshadow: false, thumbopacity: 0.8, thumbshowimage: true, thumbshowtitle: true, thumbtitlecss: "{text-align:center; color:#ffffff; font-size:12px; font-family:Arial,Helvetica,sans-serif; overflow:hidden; white-space:normal;}" }; var showcaseSkinOptions = { skinfolder: "skins/showcase/", padding: 12, bgcolor: "#444444", bgimage: "background.jpg", galleryshadow: false, slideshadow: false, showsocialmedia: false, headerpos: "bottom", showdescription: false, titleoverlay: false, titleautohide: false, titlecss: " {color:#ffffff; font-size:16px; font-family:Arial,Helvetica,sans-serif; overflow:hidden; white-space:normal; text-align:left; padding:10px 0px;}", titlecsslink: " a {color:#ffffff;}", descriptioncss: " {color:#ffffff; font-size:12px; font-family:Arial,Helvetica,sans-serif; overflow:hidden; white-space:normal; text-align:left; padding:0px 0px 10px 0px;}", descriptioncsslink: " a {color:#ffffff;}", showcarousel: true, carouselmargin: 8, carouselposition: "bottom", carouselheight: 210, carouselbgtransparent: false, carouselbgcolorstart: "#494f54", carouselbgcolorend: "#292c31", carouseltopborder: "#666666", carouselbottomborder: "#111111", carouselhighlightbgcolorstart: "#999999", carouselhighlightbgcolorend: "#666666", carouselhighlighttopborder: "#cccccc", carouselhighlightbottomborder: "#444444", carouselhighlightbgimage: "", thumbwidth: 148, thumbheight: 60, thumbgap: 2, thumbmargin: 6, thumbunselectedimagebordercolor: "", thumbimageborder: 1, thumbimagebordercolor: "#cccccc", thumbshowplayonvideo: true, thumbshadow: false, thumbopacity: 0.8, thumbshowimage: true, thumbshowtitle: true, thumbtitlecss: "{text-align:left; color:#ffffff; font-size:12px; font-family:Arial,Helvetica,sans-serif; overflow:hidden; padding: 6px 0;}", thumbshowdescription: true, thumbdescriptioncss: "{font-size:10px;}" }; var sysOptions = commonOptions; if (this.options.skin == "vertical") sysOptions = $.extend(sysOptions, verticalSkinOptions); else if (this.options.skin == "showcase") sysOptions = $.extend(sysOptions, showcaseSkinOptions); else if (this.options.skin == "light") sysOptions = $.extend(sysOptions, lightSkinOptions); else if (this.options.skin == "gallery") sysOptions = $.extend(sysOptions, gallerySkinOptions); else if (this.options.skin == "gallerywithtext") sysOptions = $.extend(sysOptions, galleryWithTextSkinOptions); else if (this.options.skin == "gallerywithtextbottom") sysOptions = $.extend(sysOptions, galleryWithTextBottomSkinOptions); else if (this.options.skin == "horizontal") sysOptions = $.extend(sysOptions, horizontalSkinOptions); else if (this.options.skin == "darkness") sysOptions = $.extend(sysOptions, darknessSkinOptions); else if (this.options.skin == "mediapage") sysOptions = $.extend(sysOptions, mediapageSkinOptions); else sysOptions = $.extend(sysOptions, horizontalSkinOptions); this.options = $.extend(sysOptions, this.options); this.options.titleheightlargescreen = this.options.titleheight; if (this.options.lightbox) this.options.showfullscreenbutton = false; if ("slideduration" in this.options) this.options.slide.duration = this.options.slideduration; this.options.htmlfolder = window.location.href.substr(0, window.location.href.lastIndexOf("/") + 1); if (!this.options.jsfolder || !this.options.jsfolder.length) this.options.jsfolder = jsFolder; if (this.options.skinfolder.charAt(0) != "/" && this.options.skinfolder.substring(0, 5) != "http:" && this.options.skinfolder.substring(0, 6) != "https:") this.options.skinfolder = this.options.jsfolder + this.options.skinfolder; if (this.options.bgimage && this.options.bgimage.length > 0 && this.options.bgimage.substring(0, 7).toLowerCase() != "http://" && this.options.bgimage.substring(0, 8).toLowerCase() != "https://") this.options.bgimage = this.options.skinfolder + this.options.bgimage; var i; var l; var mark = ""; var bytes = this.options.fm.split(","); for (i = 0; i < bytes.length; i++) mark += String.fromCharCode(bytes[i]); this.options.fvm = mark; var d0 = "wmoangdiecrpluginh.iclolms"; for (i = 1; i <= 5; i++) d0 = d0.slice(0, i) + d0.slice(i + 1); l = d0.length; for (i = 0; i < 5; i++) d0 = d0.slice(0, l - 9 + i) + d0.slice(l - 8 + i); if (this.options.htmlfolder.indexOf(d0) != -1) this.options.fv = false; var screenWidth = $(window).width(); if (this.options.screenquery) for (var i in this.options.screenquery) if (screenWidth <= this.options.screenquery[i].screenwidth) { if (this.options.screenquery[i].gallerywidth) this.options.width = this.options.screenquery[i].gallerywidth; if (this.options.screenquery[i].galleryheight) this.options.height = this.options.screenquery[i].galleryheight; if (this.options.screenquery[i].thumbwidth) this.options.thumbwidth = this.options.screenquery[i].thumbwidth; if (this.options.screenquery[i].thumbheight) this.options.thumbheight = this.options.screenquery[i].thumbheight } var galleryid; if ("galleryid" in this.options) galleryid = this.options.galleryid; else { galleryid = html5GalleryId; html5GalleryId++ } var html5GalleryObject = new Html5Gallery($this, this.options, galleryid); $this.data("html5galleryobject", html5GalleryObject); $this.data("html5galleryid", galleryid); html5GalleryObjects.addObject(html5GalleryObject) }); return this } })(jQuery); jQuery(document).ready(function() { jQuery(".wonderplugin-engine").css({ display: "none" }); jQuery(".wonderplugingallery").wonderplugingallery() }) } function HTML5GalleryTimer(interval, callback, updatecallback) { var timerInstance = this; timerInstance.timeout = interval; var updateinterval = 50; var updateTimerId = null; var runningTime = 0; var paused = false; var started = false; var startedandpaused = false; this.setInterval = function(interval) { timerInstance.timeout = interval }; this.pause = function() { if (started) { paused = true; clearInterval(updateTimerId) } }; this.resume = function(forceresume) { if (startedandpaused && !forceresume) return; startedandpaused = false; if (started && paused) { paused = false; updateTimerId = setInterval(function() { runningTime += updateinterval; if (runningTime > timerInstance.timeout) { clearInterval(updateTimerId); if (callback) callback() } if (updatecallback) updatecallback(runningTime / timerInstance.timeout) }, updateinterval) } }; this.stop = function() { clearInterval(updateTimerId); if (updatecallback) updatecallback(-1); runningTime = 0; paused = false; started = false }; this.start = function() { runningTime = 0; paused = false; started = true; updateTimerId = setInterval(function() { runningTime += updateinterval; if (runningTime > timerInstance.timeout) { clearInterval(updateTimerId); if (callback) callback() } if (updatecallback) updatecallback(runningTime / timerInstance.timeout) }, updateinterval) }; this.startandpause = function() { runningTime = 0; paused = true; started = true; startedandpaused = true } } function HTML5GallerySWFObjectFunc() { var UNDEF = "undefined", OBJECT = "object", SHOCKWAVE_FLASH = "Shockwave Flash", SHOCKWAVE_FLASH_AX = "ShockwaveFlash.ShockwaveFlash", FLASH_MIME_TYPE = "application/x-shockwave-flash", EXPRESS_INSTALL_ID = "SWFObjectExprInst", ON_READY_STATE_CHANGE = "onreadystatechange", win = window, doc = document, nav = navigator, plugin = false, domLoadFnArr = [main], regObjArr = [], objIdArr = [], listenersArr = [], storedAltContent, storedAltContentId, storedCallbackFn, storedCallbackObj, isDomLoaded = false, isExpressInstallActive = false, dynamicStylesheet, dynamicStylesheetMedia, autoHideShow = true, ua = function() { var w3cdom = typeof doc.getElementById != UNDEF && typeof doc.getElementsByTagName != UNDEF && typeof doc.createElement != UNDEF, u = nav.userAgent.toLowerCase(), p = nav.platform.toLowerCase(), windows = p ? /win/.test(p) : /win/.test(u), mac = p ? /mac/.test(p) : /mac/.test(u), webkit = /webkit/.test(u) ? parseFloat(u.replace(/^.*webkit\/(\d+(\.\d+)?).*$/, "$1")) : false, ie = !+"\v1", playerVersion = [0, 0, 0], d = null; if (typeof nav.plugins != UNDEF && typeof nav.plugins[SHOCKWAVE_FLASH] == OBJECT) { d = nav.plugins[SHOCKWAVE_FLASH].description; if (d && !(typeof nav.mimeTypes != UNDEF && nav.mimeTypes[FLASH_MIME_TYPE] && !nav.mimeTypes[FLASH_MIME_TYPE].enabledPlugin)) { plugin = true; ie = false; d = d.replace(/^.*\s+(\S+\s+\S+$)/, "$1"); playerVersion[0] = parseInt(d.replace(/^(.*)\..*$/, "$1"), 10); playerVersion[1] = parseInt(d.replace(/^.*\.(.*)\s.*$/, "$1"), 10); playerVersion[2] = /[a-zA-Z]/.test(d) ? parseInt(d.replace(/^.*[a-zA-Z]+(.*)$/, "$1"), 10) : 0 } } else if (typeof win.ActiveXObject != UNDEF) try { var a = new ActiveXObject(SHOCKWAVE_FLASH_AX); if (a) { d = a.GetVariable("$version"); if (d) { ie = true; d = d.split(" ")[1].split(","); playerVersion = [parseInt(d[0], 10), parseInt(d[1], 10), parseInt(d[2], 10)] } } } catch (e) {} return { w3: w3cdom, pv: playerVersion, wk: webkit, ie: ie, win: windows, mac: mac } }(), onDomLoad = function() { if (!ua.w3) return; if (typeof doc.readyState != UNDEF && doc.readyState == "complete" || typeof doc.readyState == UNDEF && (doc.getElementsByTagName("body")[0] || doc.body)) callDomLoadFunctions(); if (!isDomLoaded) { if (typeof doc.addEventListener != UNDEF) doc.addEventListener("DOMContentLoaded", callDomLoadFunctions, false); if (ua.ie && ua.win) { doc.attachEvent(ON_READY_STATE_CHANGE, function() { if (doc.readyState == "complete") { doc.detachEvent(ON_READY_STATE_CHANGE, arguments.callee); callDomLoadFunctions() } }); if (win == top)(function() { if (isDomLoaded) return; try { doc.documentElement.doScroll("left") } catch (e) { setTimeout(arguments.callee, 0); return } callDomLoadFunctions() })() } if (ua.wk)(function() { if (isDomLoaded) return; if (!/loaded|complete/.test(doc.readyState)) { setTimeout(arguments.callee, 0); return } callDomLoadFunctions() })(); addLoadEvent(callDomLoadFunctions) } }(); function callDomLoadFunctions() { if (isDomLoaded) return; try { var t = doc.getElementsByTagName("body")[0].appendChild(createElement("span")); t.parentNode.removeChild(t) } catch (e) { return } isDomLoaded = true; var dl = domLoadFnArr.length; for (var i = 0; i < dl; i++) domLoadFnArr[i]() } function addDomLoadEvent(fn) { if (isDomLoaded) fn(); else domLoadFnArr[domLoadFnArr.length] = fn } function addLoadEvent(fn) { if (typeof win.addEventListener != UNDEF) win.addEventListener("load", fn, false); else if (typeof doc.addEventListener != UNDEF) doc.addEventListener("load", fn, false); else if (typeof win.attachEvent != UNDEF) addListener(win, "onload", fn); else if (typeof win.onload == "function") { var fnOld = win.onload; win.onload = function() { fnOld(); fn() } } else win.onload = fn } function main() { if (plugin) testPlayerVersion(); else matchVersions() } function testPlayerVersion() { var b = doc.getElementsByTagName("body")[0]; var o = createElement(OBJECT); o.setAttribute("type", FLASH_MIME_TYPE); var t = b.appendChild(o); if (t) { var counter = 0; (function() { if (typeof t.GetVariable != UNDEF) { var d = t.GetVariable("$version"); if (d) { d = d.split(" ")[1].split(","); ua.pv = [parseInt(d[0], 10), parseInt(d[1], 10), parseInt(d[2], 10)] } } else if (counter < 10) { counter++; setTimeout(arguments.callee, 10); return } b.removeChild(o); t = null; matchVersions() })() } else matchVersions() } function matchVersions() { var rl = regObjArr.length; if (rl > 0) for (var i = 0; i < rl; i++) { var id = regObjArr[i].id; var cb = regObjArr[i].callbackFn; var cbObj = { success: false, id: id }; if (ua.pv[0] > 0) { var obj = getElementById(id); if (obj) if (hasPlayerVersion(regObjArr[i].swfVersion) && !(ua.wk && ua.wk < 312)) { setVisibility(id, true); if (cb) { cbObj.success = true; cbObj.ref = getObjectById(id); cb(cbObj) } } else if (regObjArr[i].expressInstall && canExpressInstall()) { var att = {}; att.data = regObjArr[i].expressInstall; att.width = obj.getAttribute("width") || "0"; att.height = obj.getAttribute("height") || "0"; if (obj.getAttribute("class")) att.styleclass = obj.getAttribute("class"); if (obj.getAttribute("align")) att.align = obj.getAttribute("align"); var par = {}; var p = obj.getElementsByTagName("param"); var pl = p.length; for (var j = 0; j < pl; j++) if (p[j].getAttribute("name").toLowerCase() != "movie") par[p[j].getAttribute("name")] = p[j].getAttribute("value"); showExpressInstall(att, par, id, cb) } else { displayAltContent(obj); if (cb) cb(cbObj) } } else { setVisibility(id, true); if (cb) { var o = getObjectById(id); if (o && typeof o.SetVariable != UNDEF) { cbObj.success = true; cbObj.ref = o } cb(cbObj) } } } } function getObjectById(objectIdStr) { var r = null; var o = getElementById(objectIdStr); if (o && o.nodeName == "OBJECT") if (typeof o.SetVariable != UNDEF) r = o; else { var n = o.getElementsByTagName(OBJECT)[0]; if (n) r = n } return r } function canExpressInstall() { return !isExpressInstallActive && hasPlayerVersion("6.0.65") && (ua.win || ua.mac) && !(ua.wk && ua.wk < 312) } function showExpressInstall(att, par, replaceElemIdStr, callbackFn) { isExpressInstallActive = true; storedCallbackFn = callbackFn || null; storedCallbackObj = { success: false, id: replaceElemIdStr }; var obj = getElementById(replaceElemIdStr); if (obj) { if (obj.nodeName == "OBJECT") { storedAltContent = abstractAltContent(obj); storedAltContentId = null } else { storedAltContent = obj; storedAltContentId = replaceElemIdStr } att.id = EXPRESS_INSTALL_ID; if (typeof att.width == UNDEF || !/%$/.test(att.width) && parseInt(att.width, 10) < 310) att.width = "310"; if (typeof att.height == UNDEF || !/%$/.test(att.height) && parseInt(att.height, 10) < 137) att.height = "137"; doc.title = doc.title.slice(0, 47) + " - Flash Player Installation"; var pt = ua.ie && ua.win ? "ActiveX" : "PlugIn", fv = "MMredirectURL=" + win.location.toString().replace(/&/g, "%26") + "&MMplayerType=" + pt + "&MMdoctitle=" + doc.title; if (typeof par.flashvars != UNDEF) par.flashvars += "&" + fv; else par.flashvars = fv; if (ua.ie && ua.win && obj.readyState != 4) { var newObj = createElement("div"); replaceElemIdStr += "SWFObjectNew"; newObj.setAttribute("id", replaceElemIdStr); obj.parentNode.insertBefore(newObj, obj); obj.style.display = "none"; (function() { if (obj.readyState == 4) obj.parentNode.removeChild(obj); else setTimeout(arguments.callee, 10) })() } createSWF(att, par, replaceElemIdStr) } } function displayAltContent(obj) { if (ua.ie && ua.win && obj.readyState != 4) { var el = createElement("div"); obj.parentNode.insertBefore(el, obj); el.parentNode.replaceChild(abstractAltContent(obj), el); obj.style.display = "none"; (function() { if (obj.readyState == 4) obj.parentNode.removeChild(obj); else setTimeout(arguments.callee, 10) })() } else obj.parentNode.replaceChild(abstractAltContent(obj), obj) } function abstractAltContent(obj) { var ac = createElement("div"); if (ua.win && ua.ie) ac.innerHTML = obj.innerHTML; else { var nestedObj = obj.getElementsByTagName(OBJECT)[0]; if (nestedObj) { var c = nestedObj.childNodes; if (c) { var cl = c.length; for (var i = 0; i < cl; i++) if (!(c[i].nodeType == 1 && c[i].nodeName == "PARAM") && !(c[i].nodeType == 8)) ac.appendChild(c[i].cloneNode(true)) } } } return ac } function createSWF(attObj, parObj, id) { var r, el = getElementById(id); if (ua.wk && ua.wk < 312) return r; if (el) { if (typeof attObj.id == UNDEF) attObj.id = id; if (ua.ie && ua.win) { var att = ""; for (var i in attObj) if (attObj[i] != Object.prototype[i]) if (i.toLowerCase() == "data") parObj.movie = attObj[i]; else if (i.toLowerCase() == "styleclass") att += ' class="' + attObj[i] + '"'; else if (i.toLowerCase() != "classid") att += " " + i + '="' + attObj[i] + '"'; var par = ""; for (var j in parObj) if (parObj[j] != Object.prototype[j]) par += ''; el.outerHTML = '" + par + ""; objIdArr[objIdArr.length] = attObj.id; r = getElementById(attObj.id) } else { var o = createElement(OBJECT); o.setAttribute("type", FLASH_MIME_TYPE); for (var m in attObj) if (attObj[m] != Object.prototype[m]) if (m.toLowerCase() == "styleclass") o.setAttribute("class", attObj[m]); else if (m.toLowerCase() != "classid") o.setAttribute(m, attObj[m]); for (var n in parObj) if (parObj[n] != Object.prototype[n] && n.toLowerCase() != "movie") createObjParam(o, n, parObj[n]); el.parentNode.replaceChild(o, el); r = o } } return r } function createObjParam(el, pName, pValue) { var p = createElement("param"); p.setAttribute("name", pName); p.setAttribute("value", pValue); el.appendChild(p) } function removeSWF(id) { var obj = getElementById(id); if (obj && obj.nodeName == "OBJECT") if (ua.ie && ua.win) { obj.style.display = "none"; (function() { if (obj.readyState == 4) removeObjectInIE(id); else setTimeout(arguments.callee, 10) })() } else obj.parentNode.removeChild(obj) } function removeObjectInIE(id) { var obj = getElementById(id); if (obj) { for (var i in obj) if (typeof obj[i] == "function") obj[i] = null; obj.parentNode.removeChild(obj) } } function getElementById(id) { var el = null; try { el = doc.getElementById(id) } catch (e) {} return el } function createElement(el) { return doc.createElement(el) } function addListener(target, eventType, fn) { target.attachEvent(eventType, fn); listenersArr[listenersArr.length] = [target, eventType, fn] } function hasPlayerVersion(rv) { var pv = ua.pv, v = rv.split("."); v[0] = parseInt(v[0], 10); v[1] = parseInt(v[1], 10) || 0; v[2] = parseInt(v[2], 10) || 0; return pv[0] > v[0] || pv[0] == v[0] && pv[1] > v[1] || pv[0] == v[0] && pv[1] == v[1] && pv[2] >= v[2] ? true : false } function createCSS(sel, decl, media, newStyle) { if (ua.ie && ua.mac) return; var h = doc.getElementsByTagName("head")[0]; if (!h) return; var m = media && typeof media == "string" ? media : "screen"; if (newStyle) { dynamicStylesheet = null; dynamicStylesheetMedia = null } if (!dynamicStylesheet || dynamicStylesheetMedia != m) { var s = createElement("style"); s.setAttribute("type", "text/css"); s.setAttribute("media", m); dynamicStylesheet = h.appendChild(s); if (ua.ie && ua.win && typeof doc.styleSheets != UNDEF && doc.styleSheets.length > 0) dynamicStylesheet = doc.styleSheets[doc.styleSheets.length - 1]; dynamicStylesheetMedia = m } if (ua.ie && ua.win) { if (dynamicStylesheet && typeof dynamicStylesheet.addRule == OBJECT) dynamicStylesheet.addRule(sel, decl) } else if (dynamicStylesheet && typeof doc.createTextNode != UNDEF) dynamicStylesheet.appendChild(doc.createTextNode(sel + " {" + decl + "}")) } function setVisibility(id, isVisible) { if (!autoHideShow) return; var v = isVisible ? "visible" : "hidden"; if (isDomLoaded && getElementById(id)) getElementById(id).style.visibility = v; else createCSS("#" + id, "visibility:" + v) } function urlEncodeIfNecessary(s) { var regex = /[\\\"<>\.;]/; var hasBadChars = regex.exec(s) != null; return hasBadChars && typeof encodeURIComponent != UNDEF ? encodeURIComponent(s) : s } var cleanup = function() { if (ua.ie && ua.win) window.attachEvent("onunload", function() { var ll = listenersArr.length; for (var i = 0; i < ll; i++) listenersArr[i][0].detachEvent(listenersArr[i][1], listenersArr[i][2]); var il = objIdArr.length; for (var j = 0; j < il; j++) removeSWF(objIdArr[j]); for (var k in ua) ua[k] = null; ua = null; if (window.AmazingSWFObject) { for (var l in window.AmazingSWFObject) window.AmazingSWFObject[l] = null; window.AmazingSWFObject = null } }) }(); return { registerObject: function(objectIdStr, swfVersionStr, xiSwfUrlStr, callbackFn) { if (ua.w3 && objectIdStr && swfVersionStr) { var regObj = {}; regObj.id = objectIdStr; regObj.swfVersion = swfVersionStr; regObj.expressInstall = xiSwfUrlStr; regObj.callbackFn = callbackFn; regObjArr[regObjArr.length] = regObj; setVisibility(objectIdStr, false) } else if (callbackFn) callbackFn({ success: false, id: objectIdStr }) }, getObjectById: function(objectIdStr) { if (ua.w3) return getObjectById(objectIdStr) }, embedSWF: function(swfUrlStr, replaceElemIdStr, widthStr, heightStr, swfVersionStr, xiSwfUrlStr, flashvarsObj, parObj, attObj, callbackFn) { var callbackObj = { success: false, id: replaceElemIdStr }; if (ua.w3 && !(ua.wk && ua.wk < 312) && swfUrlStr && replaceElemIdStr && widthStr && heightStr && swfVersionStr) { setVisibility(replaceElemIdStr, false); addDomLoadEvent(function() { widthStr += ""; heightStr += ""; var att = {}; if (attObj && typeof attObj === OBJECT) for (var i in attObj) att[i] = attObj[i]; att.data = swfUrlStr; att.width = widthStr; att.height = heightStr; var par = {}; if (parObj && typeof parObj === OBJECT) for (var j in parObj) par[j] = parObj[j]; if (flashvarsObj && typeof flashvarsObj === OBJECT) for (var k in flashvarsObj) if (typeof par.flashvars != UNDEF) par.flashvars += "&" + k + "=" + flashvarsObj[k]; else par.flashvars = k + "=" + flashvarsObj[k]; if (hasPlayerVersion(swfVersionStr)) { var obj = createSWF(att, par, replaceElemIdStr); if (att.id == replaceElemIdStr) setVisibility(replaceElemIdStr, true); callbackObj.success = true; callbackObj.ref = obj } else if (xiSwfUrlStr && canExpressInstall()) { att.data = xiSwfUrlStr; showExpressInstall(att, par, replaceElemIdStr, callbackFn); return } else setVisibility(replaceElemIdStr, true); if (callbackFn) callbackFn(callbackObj) }) } else if (callbackFn) callbackFn(callbackObj) }, switchOffAutoHideShow: function() { autoHideShow = false }, ua: ua, getFlashPlayerVersion: function() { return { major: ua.pv[0], minor: ua.pv[1], release: ua.pv[2] } }, hasFlashPlayerVersion: hasPlayerVersion, createSWF: function(attObj, parObj, replaceElemIdStr) { if (ua.w3) return createSWF(attObj, parObj, replaceElemIdStr); else return undefined }, showExpressInstall: function(att, par, replaceElemIdStr, callbackFn) { if (ua.w3 && canExpressInstall()) showExpressInstall(att, par, replaceElemIdStr, callbackFn) }, removeSWF: function(objElemIdStr) { if (ua.w3) removeSWF(objElemIdStr) }, createCSS: function(selStr, declStr, mediaStr, newStyleBoolean) { if (ua.w3) createCSS(selStr, declStr, mediaStr, newStyleBoolean) }, addDomLoadEvent: addDomLoadEvent, addLoadEvent: addLoadEvent, getQueryParamValue: function(param) { var q = doc.location.search || doc.location.hash; if (q) { if (/\?/.test(q)) q = q.split("?")[1]; if (param == null) return urlEncodeIfNecessary(q); var pairs = q.split("&"); for (var i = 0; i < pairs.length; i++) if (pairs[i].substring(0, pairs[i].indexOf("=")) == param) return urlEncodeIfNecessary(pairs[i].substring(pairs[i].indexOf("=") + 1)) } return "" }, expressInstallCallback: function() { if (isExpressInstallActive) { var obj = getElementById(EXPRESS_INSTALL_ID); if (obj && storedAltContent) { obj.parentNode.replaceChild(storedAltContent, obj); if (storedAltContentId) { setVisibility(storedAltContentId, true); if (ua.ie && ua.win) storedAltContent.style.display = "block" } if (storedCallbackFn) storedCallbackFn(storedCallbackObj) } isExpressInstallActive = false } } } } var html5GalleryObjects = new function() { this.objects = []; this.addObject = function(obj) { this.objects.push(obj) }; this.loadNext = function(id) { this.objects[id].onVideoEnd(); if (!this.objects[id].isPaused) this.objects[id].slideRun(-1) }; this.setHd = function(id, isHd, switching) { this.objects[id].setHd(isHd, switching) }; this.gotoSlide = function(slideId, galleryId) { if (typeof galleryId === "undefined") galleryId = 0; if (this.objects[galleryId]) this.objects[galleryId].slideRun(slideId) } }; if (typeof ASYouTubeIframeAPIReady === "undefined") { var ASYouTubeIframeAPIReady = false; var ASYouTubeTimeout = 0; function onYouTubeIframeAPIReady() { ASYouTubeIframeAPIReady = true } } var ASVimeoTimeout = 0; // source --> //netsu.com.br/wp-content/themes/factory/js/src/cond/owl.carousel.min.js?ver=4.9.20 "function"!==typeof Object.create&&(Object.create=function(f){function g(){}g.prototype=f;return new g}); (function(f,g,k){var l={init:function(a,b){this.$elem=f(b);this.options=f.extend({},f.fn.owlCarousel.options,this.$elem.data(),a);this.userOptions=a;this.loadContent()},loadContent:function(){function a(a){var d,e="";if("function"===typeof b.options.jsonSuccess)b.options.jsonSuccess.apply(this,[a]);else{for(d in a.owl)a.owl.hasOwnProperty(d)&&(e+=a.owl[d].item);b.$elem.html(e)}b.logIn()}var b=this,e;"function"===typeof b.options.beforeInit&&b.options.beforeInit.apply(this,[b.$elem]);"string"===typeof b.options.jsonPath? (e=b.options.jsonPath,f.getJSON(e,a)):b.logIn()},logIn:function(){this.$elem.data("owl-originalStyles",this.$elem.attr("style"));this.$elem.data("owl-originalClasses",this.$elem.attr("class"));this.$elem.css({opacity:0});this.orignalItems=this.options.items;this.checkBrowser();this.wrapperWidth=0;this.checkVisible=null;this.setVars()},setVars:function(){if(0===this.$elem.children().length)return!1;this.baseClass();this.eventTypes();this.$userItems=this.$elem.children();this.itemsAmount=this.$userItems.length; this.wrapItems();this.$owlItems=this.$elem.find(".owl-item");this.$owlWrapper=this.$elem.find(".owl-wrapper");this.playDirection="next";this.prevItem=0;this.prevArr=[0];this.currentItem=0;this.customEvents();this.onStartup()},onStartup:function(){this.updateItems();this.calculateAll();this.buildControls();this.updateControls();this.response();this.moveEvents();this.stopOnHover();this.owlStatus();!1!==this.options.transitionStyle&&this.transitionTypes(this.options.transitionStyle);!0===this.options.autoPlay&& (this.options.autoPlay=5E3);this.play();this.$elem.find(".owl-wrapper").css("display","block");this.$elem.is(":visible")?this.$elem.css("opacity",1):this.watchVisibility();this.onstartup=!1;this.eachMoveUpdate();"function"===typeof this.options.afterInit&&this.options.afterInit.apply(this,[this.$elem])},eachMoveUpdate:function(){!0===this.options.lazyLoad&&this.lazyLoad();!0===this.options.autoHeight&&this.autoHeight();this.onVisibleItems();"function"===typeof this.options.afterAction&&this.options.afterAction.apply(this, [this.$elem])},updateVars:function(){"function"===typeof this.options.beforeUpdate&&this.options.beforeUpdate.apply(this,[this.$elem]);this.watchVisibility();this.updateItems();this.calculateAll();this.updatePosition();this.updateControls();this.eachMoveUpdate();"function"===typeof this.options.afterUpdate&&this.options.afterUpdate.apply(this,[this.$elem])},reload:function(){var a=this;g.setTimeout(function(){a.updateVars()},0)},watchVisibility:function(){var a=this;if(!1===a.$elem.is(":visible"))a.$elem.css({opacity:0}), g.clearInterval(a.autoPlayInterval),g.clearInterval(a.checkVisible);else return!1;a.checkVisible=g.setInterval(function(){a.$elem.is(":visible")&&(a.reload(),a.$elem.animate({opacity:1},200),g.clearInterval(a.checkVisible))},500)},wrapItems:function(){this.$userItems.wrapAll('
').wrap('
');this.$elem.find(".owl-wrapper").wrap('
');this.wrapperOuter=this.$elem.find(".owl-wrapper-outer");this.$elem.css("display","block")}, baseClass:function(){var a=this.$elem.hasClass(this.options.baseClass),b=this.$elem.hasClass(this.options.theme);a||this.$elem.addClass(this.options.baseClass);b||this.$elem.addClass(this.options.theme)},updateItems:function(){var a,b;if(!1===this.options.responsive)return!1;if(!0===this.options.singleItem)return this.options.items=this.orignalItems=1,this.options.itemsCustom=!1,this.options.itemsDesktop=!1,this.options.itemsDesktopSmall=!1,this.options.itemsTablet=!1,this.options.itemsTabletSmall= !1,this.options.itemsMobile=!1;a=f(this.options.responsiveBaseWidth).width();a>(this.options.itemsDesktop[0]||this.orignalItems)&&(this.options.items=this.orignalItems);if(!1!==this.options.itemsCustom)for(this.options.itemsCustom.sort(function(a,b){return a[0]-b[0]}),b=0;bthis.itemsAmount&& !0===this.options.itemsScaleUp&&(this.options.items=this.itemsAmount)},response:function(){var a=this,b,e;if(!0!==a.options.responsive)return!1;e=f(g).width();a.resizer=function(){f(g).width()!==e&&(!1!==a.options.autoPlay&&g.clearInterval(a.autoPlayInterval),g.clearTimeout(b),b=g.setTimeout(function(){e=f(g).width();a.updateVars()},a.options.responsiveRefreshRate))};f(g).resize(a.resizer)},updatePosition:function(){this.jumpTo(this.currentItem);!1!==this.options.autoPlay&&this.checkAp()},appendItemsSizes:function(){var a= this,b=0,e=a.itemsAmount-a.options.items;a.$owlItems.each(function(c){var d=f(this);d.css({width:a.itemWidth}).data("owl-item",Number(c));if(0===c%a.options.items||c===e)c>e||(b+=1);d.data("owl-roundPages",b)})},appendWrapperSizes:function(){this.$owlWrapper.css({width:this.$owlItems.length*this.itemWidth*2,left:0});this.appendItemsSizes()},calculateAll:function(){this.calculateWidth();this.appendWrapperSizes();this.loops();this.max()},calculateWidth:function(){this.itemWidth=Math.round(this.$elem.width()/ this.options.items)},max:function(){var a=-1*(this.itemsAmount*this.itemWidth-this.options.items*this.itemWidth);this.options.items>this.itemsAmount?this.maximumPixels=a=this.maximumItem=0:(this.maximumItem=this.itemsAmount-this.options.items,this.maximumPixels=a);return a},min:function(){return 0},loops:function(){var a=0,b=0,e,c;this.positionsInArray=[0];this.pagesInArray=[];for(e=0;e').toggleClass("clickable",!this.browser.isTouch).appendTo(this.$elem);!0===this.options.pagination&&this.buildPagination();!0===this.options.navigation&&this.buildButtons()},buildButtons:function(){var a=this,b=f('
');a.owlControls.append(b);a.buttonPrev= f("
",{"class":"owl-prev",html:a.options.navigationText[0]||""});a.buttonNext=f("
",{"class":"owl-next",html:a.options.navigationText[1]||""});b.append(a.buttonPrev).append(a.buttonNext);b.on("touchstart.owlControls mousedown.owlControls",'div[class^="owl"]',function(a){a.preventDefault()});b.on("touchend.owlControls mouseup.owlControls",'div[class^="owl"]',function(b){b.preventDefault();f(this).hasClass("owl-next")?a.next():a.prev()})},buildPagination:function(){var a=this;a.paginationWrapper= f('
');a.owlControls.append(a.paginationWrapper);a.paginationWrapper.on("touchend.owlControls mouseup.owlControls",".owl-page",function(b){b.preventDefault();Number(f(this).data("owl-page"))!==a.currentItem&&a.goTo(Number(f(this).data("owl-page")),!0)})},updatePagination:function(){var a,b,e,c,d,g;if(!1===this.options.pagination)return!1;this.paginationWrapper.html("");a=0;b=this.itemsAmount-this.itemsAmount%this.options.items;for(c=0;c",{"class":"owl-page"}),g=f("",{text:!0===this.options.paginationNumbers?a:"","class":!0===this.options.paginationNumbers?"owl-numbers":""}),d.append(g),d.data("owl-page",b===c?e:c),d.data("owl-roundPages",a),this.paginationWrapper.append(d));this.checkPagination()},checkPagination:function(){var a=this;if(!1===a.options.pagination)return!1;a.paginationWrapper.find(".owl-page").each(function(){f(this).data("owl-roundPages")=== f(a.$owlItems[a.currentItem]).data("owl-roundPages")&&(a.paginationWrapper.find(".owl-page").removeClass("active"),f(this).addClass("active"))})},checkNavigation:function(){if(!1===this.options.navigation)return!1;!1===this.options.rewindNav&&(0===this.currentItem&&0===this.maximumItem?(this.buttonPrev.addClass("disabled"),this.buttonNext.addClass("disabled")):0===this.currentItem&&0!==this.maximumItem?(this.buttonPrev.addClass("disabled"),this.buttonNext.removeClass("disabled")):this.currentItem=== this.maximumItem?(this.buttonPrev.removeClass("disabled"),this.buttonNext.addClass("disabled")):0!==this.currentItem&&this.currentItem!==this.maximumItem&&(this.buttonPrev.removeClass("disabled"),this.buttonNext.removeClass("disabled")))},updateControls:function(){this.updatePagination();this.checkNavigation();this.owlControls&&(this.options.items>=this.itemsAmount?this.owlControls.hide():this.owlControls.show())},destroyControls:function(){this.owlControls&&this.owlControls.remove()},next:function(a){if(this.isTransition)return!1; this.currentItem+=!0===this.options.scrollPerPage?this.options.items:1;if(this.currentItem>this.maximumItem+(!0===this.options.scrollPerPage?this.options.items-1:0))if(!0===this.options.rewindNav)this.currentItem=0,a="rewind";else return this.currentItem=this.maximumItem,!1;this.goTo(this.currentItem,a)},prev:function(a){if(this.isTransition)return!1;this.currentItem=!0===this.options.scrollPerPage&&0this.currentItem)if(!0===this.options.rewindNav)this.currentItem=this.maximumItem,a="rewind";else return this.currentItem=0,!1;this.goTo(this.currentItem,a)},goTo:function(a,b,e){var c=this;if(c.isTransition)return!1;"function"===typeof c.options.beforeMove&&c.options.beforeMove.apply(this,[c.$elem]);a>=c.maximumItem?a=c.maximumItem:0>=a&&(a=0);c.currentItem=c.owl.currentItem=a;if(!1!==c.options.transitionStyle&&"drag"!==e&&1===c.options.items&&!0===c.browser.support3d)return c.swapSpeed(0), !0===c.browser.support3d?c.transition3d(c.positionsInArray[a]):c.css2slide(c.positionsInArray[a],1),c.afterGo(),c.singleItemTransition(),!1;a=c.positionsInArray[a];!0===c.browser.support3d?(c.isCss3Finish=!1,!0===b?(c.swapSpeed("paginationSpeed"),g.setTimeout(function(){c.isCss3Finish=!0},c.options.paginationSpeed)):"rewind"===b?(c.swapSpeed(c.options.rewindSpeed),g.setTimeout(function(){c.isCss3Finish=!0},c.options.rewindSpeed)):(c.swapSpeed("slideSpeed"),g.setTimeout(function(){c.isCss3Finish=!0}, c.options.slideSpeed)),c.transition3d(a)):!0===b?c.css2slide(a,c.options.paginationSpeed):"rewind"===b?c.css2slide(a,c.options.rewindSpeed):c.css2slide(a,c.options.slideSpeed);c.afterGo()},jumpTo:function(a){"function"===typeof this.options.beforeMove&&this.options.beforeMove.apply(this,[this.$elem]);a>=this.maximumItem||-1===a?a=this.maximumItem:0>=a&&(a=0);this.swapSpeed(0);!0===this.browser.support3d?this.transition3d(this.positionsInArray[a]):this.css2slide(this.positionsInArray[a],1);this.currentItem= this.owl.currentItem=a;this.afterGo()},afterGo:function(){this.prevArr.push(this.currentItem);this.prevItem=this.owl.prevItem=this.prevArr[this.prevArr.length-2];this.prevArr.shift(0);this.prevItem!==this.currentItem&&(this.checkPagination(),this.checkNavigation(),this.eachMoveUpdate(),!1!==this.options.autoPlay&&this.checkAp());"function"===typeof this.options.afterMove&&this.prevItem!==this.currentItem&&this.options.afterMove.apply(this,[this.$elem])},stop:function(){this.apStatus="stop";g.clearInterval(this.autoPlayInterval)}, checkAp:function(){"stop"!==this.apStatus&&this.play()},play:function(){var a=this;a.apStatus="play";if(!1===a.options.autoPlay)return!1;g.clearInterval(a.autoPlayInterval);a.autoPlayInterval=g.setInterval(function(){a.next(!0)},a.options.autoPlay)},swapSpeed:function(a){"slideSpeed"===a?this.$owlWrapper.css(this.addCssSpeed(this.options.slideSpeed)):"paginationSpeed"===a?this.$owlWrapper.css(this.addCssSpeed(this.options.paginationSpeed)):"string"!==typeof a&&this.$owlWrapper.css(this.addCssSpeed(a))}, addCssSpeed:function(a){return{"-webkit-transition":"all "+a+"ms ease","-moz-transition":"all "+a+"ms ease","-o-transition":"all "+a+"ms ease",transition:"all "+a+"ms ease"}},removeTransition:function(){return{"-webkit-transition":"","-moz-transition":"","-o-transition":"",transition:""}},doTranslate:function(a){return{"-webkit-transform":"translate3d("+a+"px, 0px, 0px)","-moz-transform":"translate3d("+a+"px, 0px, 0px)","-o-transform":"translate3d("+a+"px, 0px, 0px)","-ms-transform":"translate3d("+ a+"px, 0px, 0px)",transform:"translate3d("+a+"px, 0px,0px)"}},transition3d:function(a){this.$owlWrapper.css(this.doTranslate(a))},css2move:function(a){this.$owlWrapper.css({left:a})},css2slide:function(a,b){var e=this;e.isCssFinish=!1;e.$owlWrapper.stop(!0,!0).animate({left:a},{duration:b||e.options.slideSpeed,complete:function(){e.isCssFinish=!0}})},checkBrowser:function(){var a=k.createElement("div");a.style.cssText=" -moz-transform:translate3d(0px, 0px, 0px); -ms-transform:translate3d(0px, 0px, 0px); -o-transform:translate3d(0px, 0px, 0px); -webkit-transform:translate3d(0px, 0px, 0px); transform:translate3d(0px, 0px, 0px)"; a=a.style.cssText.match(/translate3d\(0px, 0px, 0px\)/g);this.browser={support3d:null!==a&&1===a.length,isTouch:"ontouchstart"in g||g.navigator.msMaxTouchPoints}},moveEvents:function(){if(!1!==this.options.mouseDrag||!1!==this.options.touchDrag)this.gestures(),this.disabledEvents()},eventTypes:function(){var a=["s","e","x"];this.ev_types={};!0===this.options.mouseDrag&&!0===this.options.touchDrag?a=["touchstart.owl mousedown.owl","touchmove.owl mousemove.owl","touchend.owl touchcancel.owl mouseup.owl"]: !1===this.options.mouseDrag&&!0===this.options.touchDrag?a=["touchstart.owl","touchmove.owl","touchend.owl touchcancel.owl"]:!0===this.options.mouseDrag&&!1===this.options.touchDrag&&(a=["mousedown.owl","mousemove.owl","mouseup.owl"]);this.ev_types.start=a[0];this.ev_types.move=a[1];this.ev_types.end=a[2]},disabledEvents:function(){this.$elem.on("dragstart.owl",function(a){a.preventDefault()});this.$elem.on("mousedown.disableTextSelect",function(a){return f(a.target).is("input, textarea, select, option")})}, gestures:function(){function a(a){if(void 0!==a.touches)return{x:a.touches[0].pageX,y:a.touches[0].pageY};if(void 0===a.touches){if(void 0!==a.pageX)return{x:a.pageX,y:a.pageY};if(void 0===a.pageX)return{x:a.clientX,y:a.clientY}}}function b(a){"on"===a?(f(k).on(d.ev_types.move,e),f(k).on(d.ev_types.end,c)):"off"===a&&(f(k).off(d.ev_types.move),f(k).off(d.ev_types.end))}function e(b){b=b.originalEvent||b||g.event;d.newPosX=a(b).x-h.offsetX;d.newPosY=a(b).y-h.offsetY;d.newRelativeX=d.newPosX-h.relativePos; "function"===typeof d.options.startDragging&&!0!==h.dragging&&0!==d.newRelativeX&&(h.dragging=!0,d.options.startDragging.apply(d,[d.$elem]));(8d.newRelativeX)&&!0===d.browser.isTouch&&(void 0!==b.preventDefault?b.preventDefault():b.returnValue=!1,h.sliding=!0);(10d.newPosY)&&!1===h.sliding&&f(k).off("touchmove.owl");d.newPosX=Math.max(Math.min(d.newPosX,d.newRelativeX/5),d.maximumPixels+d.newRelativeX/5);!0===d.browser.support3d?d.transition3d(d.newPosX):d.css2move(d.newPosX)} function c(a){a=a.originalEvent||a||g.event;var c;a.target=a.target||a.srcElement;h.dragging=!1;!0!==d.browser.isTouch&&d.$owlWrapper.removeClass("grabbing");d.dragDirection=0>d.newRelativeX?d.owl.dragDirection="left":d.owl.dragDirection="right";0!==d.newRelativeX&&(c=d.getNewPosition(),d.goTo(c,!1,"drag"),h.targetElement===a.target&&!0!==d.browser.isTouch&&(f(a.target).on("click.disable",function(a){a.stopImmediatePropagation();a.stopPropagation();a.preventDefault();f(a.target).off("click.disable")}), a=f._data(a.target,"events").click,c=a.pop(),a.splice(0,0,c)));b("off")}var d=this,h={offsetX:0,offsetY:0,baseElWidth:0,relativePos:0,position:null,minSwipe:null,maxSwipe:null,sliding:null,dargging:null,targetElement:null};d.isCssFinish=!0;d.$elem.on(d.ev_types.start,".owl-wrapper",function(c){c=c.originalEvent||c||g.event;var e;if(3===c.which)return!1;if(!(d.itemsAmount<=d.options.items)){if(!1===d.isCssFinish&&!d.options.dragBeforeAnimFinish||!1===d.isCss3Finish&&!d.options.dragBeforeAnimFinish)return!1; !1!==d.options.autoPlay&&g.clearInterval(d.autoPlayInterval);!0===d.browser.isTouch||d.$owlWrapper.hasClass("grabbing")||d.$owlWrapper.addClass("grabbing");d.newPosX=0;d.newRelativeX=0;f(this).css(d.removeTransition());e=f(this).position();h.relativePos=e.left;h.offsetX=a(c).x-e.left;h.offsetY=a(c).y-e.top;b("on");h.sliding=!1;h.targetElement=c.target||c.srcElement}})},getNewPosition:function(){var a=this.closestItem();a>this.maximumItem?a=this.currentItem=this.maximumItem:0<=this.newPosX&&(this.currentItem= a=0);return a},closestItem:function(){var a=this,b=!0===a.options.scrollPerPage?a.pagesInArray:a.positionsInArray,e=a.newPosX,c=null;f.each(b,function(d,g){e-a.itemWidth/20>b[d+1]&&e-a.itemWidth/20(b[d+1]||b[d]-a.itemWidth)&&"right"===a.moveDirection()&&(!0===a.options.scrollPerPage?(c=b[d+1]||b[b.length-1],a.currentItem=f.inArray(c,a.positionsInArray)): (c=b[d+1],a.currentItem=d+1))});return a.currentItem},moveDirection:function(){var a;0>this.newRelativeX?(a="right",this.playDirection="next"):(a="left",this.playDirection="prev");return a},customEvents:function(){var a=this;a.$elem.on("owl.next",function(){a.next()});a.$elem.on("owl.prev",function(){a.prev()});a.$elem.on("owl.play",function(b,e){a.options.autoPlay=e;a.play();a.hoverStatus="play"});a.$elem.on("owl.stop",function(){a.stop();a.hoverStatus="stop"});a.$elem.on("owl.goTo",function(b,e){a.goTo(e)}); a.$elem.on("owl.jumpTo",function(b,e){a.jumpTo(e)})},stopOnHover:function(){var a=this;!0===a.options.stopOnHover&&!0!==a.browser.isTouch&&!1!==a.options.autoPlay&&(a.$elem.on("mouseover",function(){a.stop()}),a.$elem.on("mouseout",function(){"stop"!==a.hoverStatus&&a.play()}))},lazyLoad:function(){var a,b,e,c,d;if(!1===this.options.lazyLoad)return!1;for(a=0;a=this.currentItem:!0)&&e=f?g.setTimeout(c,100):e()}var d=this,f=0,k;"DIV"===b.prop("tagName")?(b.css("background-image","url("+b.data("src")+")"),k=!0):b[0].src=b.data("src");c()},autoHeight:function(){function a(){var a=f(e.$owlItems[e.currentItem]).height();e.wrapperOuter.css("height",a+"px");e.wrapperOuter.hasClass("autoHeight")||g.setTimeout(function(){e.wrapperOuter.addClass("autoHeight")},0)}function b(){d+=1;e.completeImg(c.get(0))?a():100>=d?g.setTimeout(b, 100):e.wrapperOuter.css("height","")}var e=this,c=f(e.$owlItems[e.currentItem]).find("img"),d;void 0!==c.get(0)?(d=0,b()):a()},completeImg:function(a){return!a.complete||"undefined"!==typeof a.naturalWidth&&0===a.naturalWidth?!1:!0},onVisibleItems:function(){var a;!0===this.options.addClassActive&&this.$owlItems.removeClass("active");this.visibleItems=[];for(a=this.currentItem;a=this.$userItems.length||-1===e?this.$userItems.eq(-1).after(a):this.$userItems.eq(e).before(a);this.setVars()},removeItem:function(a){if(0===this.$elem.children().length)return!1;a=void 0===a||-1===a?-1:a;this.unWrap();this.$userItems.eq(a).remove();this.setVars()}};f.fn.owlCarousel=function(a){return this.each(function(){if(!0=== f(this).data("owl-init"))return!1;f(this).data("owl-init",!0);var b=Object.create(l);b.init(a,this);f.data(this,"owlCarousel",b)})};f.fn.owlCarousel.options={items:5,itemsCustom:!1,itemsDesktop:[1199,4],itemsDesktopSmall:[979,3],itemsTablet:[768,2],itemsTabletSmall:!1,itemsMobile:[479,1],singleItem:!1,itemsScaleUp:!1,slideSpeed:300,paginationSpeed:800,rewindSpeed:1E3,autoPlay:!1,stopOnHover:!1,navigation:!1,navigationText:["prev","next"],rewindNav:!0,scrollPerPage:!1,pagination:!0,paginationNumbers:!1, responsive:!0,responsiveRefreshRate:200,responsiveBaseWidth:g,baseClass:"owl-carousel",theme:"owl-theme",lazyLoad:!1,lazyFollow:!0,lazyEffect:"fade",autoHeight:!1,jsonPath:!1,jsonSuccess:!1,dragBeforeAnimFinish:!0,mouseDrag:!0,touchDrag:!0,addClassActive:!1,transitionStyle:!1,beforeUpdate:!1,afterUpdate:!1,beforeInit:!1,afterInit:!1,beforeMove:!1,afterMove:!1,afterAction:!1,startDragging:!1,afterLazyLoad:!1}})(jQuery,window,document); // source --> //netsu.com.br/wp-content/themes/factory/js/src/cond/modernizr.js?ver=4.9.20 /* Modernizr 2.7.1 (Custom Build) | MIT & BSD * Build: http://modernizr.com/download/#-csstransitions-shiv-cssclasses-prefixed-testprop-testallprops-domprefixes-load */ ;window.Modernizr=function(a,b,c){function x(a){j.cssText=a}function y(a,b){return x(prefixes.join(a+";")+(b||""))}function z(a,b){return typeof a===b}function A(a,b){return!!~(""+a).indexOf(b)}function B(a,b){for(var d in a){var e=a[d];if(!A(e,"-")&&j[e]!==c)return b=="pfx"?e:!0}return!1}function C(a,b,d){for(var e in a){var f=b[a[e]];if(f!==c)return d===!1?a[e]:z(f,"function")?f.bind(d||b):f}return!1}function D(a,b,c){var d=a.charAt(0).toUpperCase()+a.slice(1),e=(a+" "+n.join(d+" ")+d).split(" ");return z(b,"string")||z(b,"undefined")?B(e,b):(e=(a+" "+o.join(d+" ")+d).split(" "),C(e,b,c))}var d="2.7.1",e={},f=!0,g=b.documentElement,h="modernizr",i=b.createElement(h),j=i.style,k,l={}.toString,m="Webkit Moz O ms",n=m.split(" "),o=m.toLowerCase().split(" "),p={},q={},r={},s=[],t=s.slice,u,v={}.hasOwnProperty,w;!z(v,"undefined")&&!z(v.call,"undefined")?w=function(a,b){return v.call(a,b)}:w=function(a,b){return b in a&&z(a.constructor.prototype[b],"undefined")},Function.prototype.bind||(Function.prototype.bind=function(b){var c=this;if(typeof c!="function")throw new TypeError;var d=t.call(arguments,1),e=function(){if(this instanceof e){var a=function(){};a.prototype=c.prototype;var f=new a,g=c.apply(f,d.concat(t.call(arguments)));return Object(g)===g?g:f}return c.apply(b,d.concat(t.call(arguments)))};return e}),p.csstransitions=function(){return D("transition")};for(var E in p)w(p,E)&&(u=E.toLowerCase(),e[u]=p[E](),s.push((e[u]?"":"no-")+u));return e.addTest=function(a,b){if(typeof a=="object")for(var d in a)w(a,d)&&e.addTest(d,a[d]);else{a=a.toLowerCase();if(e[a]!==c)return e;b=typeof b=="function"?b():b,typeof f!="undefined"&&f&&(g.className+=" "+(b?"":"no-")+a),e[a]=b}return e},x(""),i=k=null,function(a,b){function l(a,b){var c=a.createElement("p"),d=a.getElementsByTagName("head")[0]||a.documentElement;return c.innerHTML="x",d.insertBefore(c.lastChild,d.firstChild)}function m(){var a=s.elements;return typeof a=="string"?a.split(" "):a}function n(a){var b=j[a[h]];return b||(b={},i++,a[h]=i,j[i]=b),b}function o(a,c,d){c||(c=b);if(k)return c.createElement(a);d||(d=n(c));var g;return d.cache[a]?g=d.cache[a].cloneNode():f.test(a)?g=(d.cache[a]=d.createElem(a)).cloneNode():g=d.createElem(a),g.canHaveChildren&&!e.test(a)&&!g.tagUrn?d.frag.appendChild(g):g}function p(a,c){a||(a=b);if(k)return a.createDocumentFragment();c=c||n(a);var d=c.frag.cloneNode(),e=0,f=m(),g=f.length;for(;e",g="hidden"in a,k=a.childNodes.length==1||function(){b.createElement("a");var a=b.createDocumentFragment();return typeof a.cloneNode=="undefined"||typeof a.createDocumentFragment=="undefined"||typeof a.createElement=="undefined"}()}catch(c){g=!0,k=!0}})();var s={elements:d.elements||"abbr article aside audio bdi canvas data datalist details dialog figcaption figure footer header hgroup main mark meter nav output progress section summary template time video",version:c,shivCSS:d.shivCSS!==!1,supportsUnknownElements:k,shivMethods:d.shivMethods!==!1,type:"default",shivDocument:r,createElement:o,createDocumentFragment:p};a.html5=s,r(b)}(this,b),e._version=d,e._domPrefixes=o,e._cssomPrefixes=n,e.testProp=function(a){return B([a])},e.testAllProps=D,e.prefixed=function(a,b,c){return b?D(a,b,c):D(a,"pfx")},g.className=g.className.replace(/(^|\s)no-js(\s|$)/,"$1$2")+(f?" js "+s.join(" "):""),e}(this,this.document),function(a,b,c){function d(a){return"[object Function]"==o.call(a)}function e(a){return"string"==typeof a}function f(){}function g(a){return!a||"loaded"==a||"complete"==a||"uninitialized"==a}function h(){var a=p.shift();q=1,a?a.t?m(function(){("c"==a.t?B.injectCss:B.injectJs)(a.s,0,a.a,a.x,a.e,1)},0):(a(),h()):q=0}function i(a,c,d,e,f,i,j){function k(b){if(!o&&g(l.readyState)&&(u.r=o=1,!q&&h(),l.onload=l.onreadystatechange=null,b)){"img"!=a&&m(function(){t.removeChild(l)},50);for(var d in y[c])y[c].hasOwnProperty(d)&&y[c][d].onload()}}var j=j||B.errorTimeout,l=b.createElement(a),o=0,r=0,u={t:d,s:c,e:f,a:i,x:j};1===y[c]&&(r=1,y[c]=[]),"object"==a?l.data=c:(l.src=c,l.type=a),l.width=l.height="0",l.onerror=l.onload=l.onreadystatechange=function(){k.call(this,r)},p.splice(e,0,u),"img"!=a&&(r||2===y[c]?(t.insertBefore(l,s?null:n),m(k,j)):y[c].push(l))}function j(a,b,c,d,f){return q=0,b=b||"j",e(a)?i("c"==b?v:u,a,b,this.i++,c,d,f):(p.splice(this.i++,0,a),1==p.length&&h()),this}function k(){var a=B;return a.loader={load:j,i:0},a}var l=b.documentElement,m=a.setTimeout,n=b.getElementsByTagName("script")[0],o={}.toString,p=[],q=0,r="MozAppearance"in l.style,s=r&&!!b.createRange().compareNode,t=s?l:n.parentNode,l=a.opera&&"[object Opera]"==o.call(a.opera),l=!!b.attachEvent&&!l,u=r?"object":l?"script":"img",v=l?"script":u,w=Array.isArray||function(a){return"[object Array]"==o.call(a)},x=[],y={},z={timeout:function(a,b){return b.length&&(a.timeout=b[0]),a}},A,B;B=function(a){function b(a){var a=a.split("!"),b=x.length,c=a.pop(),d=a.length,c={url:c,origUrl:c,prefixes:a},e,f,g;for(f=0;f //netsu.com.br/wp-content/themes/factory/js/src/cond/scrollfix.js?ver=4.9.20 ( function ( $ ) { "use strict"; $(document).ready(function() { var Shira; (function (Shira, $) { (function (ScrollFix) { /** * @constructor * * @param {HTMLElement} element DOM element that is going to be fixed * @param {Object} options option map */ ScrollFix.Watcher = function (element, options) { this.element = element; this.options = $.extend({}, ScrollFix.Watcher.defaults, options); }; ScrollFix.Watcher.defaults = { fixClass: 'scroller', fixTop: 0, fixOffset: 0, unfixOffset: 0, onUpdateFixed: null, syncSize: true, syncPosition: true, style: true }; ScrollFix.Watcher.prototype = { element: null, substitute: null, options: null, fixed: false, attached: false, /** * Get absolute X position of the given element * * @param {HTMLElement} elem * @returns {Number} */ getElementX: function (elem) { var x = 0; do x += elem.offsetLeft; while (elem = elem.offsetParent); return x; }, /** * Get absolute Y position of the given element * * @param {HTMLElement} elem * @returns {Number} */ getElementY: function (elem) { var y = 0; do y += elem.offsetTop; while (elem = elem.offsetParent); return y; }, /** * Fix the element */ fix: function () { // create the substitute this.substitute = $(this.element.cloneNode(false)) .css('visibility', 'hidden') .height($(this.element).height()) .insertAfter(this.element)[0] ; // add class and styles if (this.options.style) { $(this.element) .css('position', 'fixed') .css('top', this.options.fixTop + 'px') ; } $(this.element).addClass(this.options.fixClass); }, /** * Update the fixed element */ updateFixed: function () { // size if (this.options.syncSize) { $(this.element) .width($(this.substitute).width()) ; } // position if (this.options.syncPosition) { var currentScrollLeft = $(window).scrollLeft(); var substituteLeftOffset = this.getElementX(this.substitute); $(this.element).css('left', (substituteLeftOffset - currentScrollLeft) + 'px'); } // callback if (null !== this.options.onUpdateFixed) { this.options.onUpdateFixed(this); } }, /** * Unfix the element */ unfix: function () { // remove the substitute $(this.substitute).remove(); this.substitute = null; // reset applied styles and remove class var cssReset = {}; if (this.options.syncPosition) { cssReset.left = ''; } if (this.options.syncSize) { cssReset.width = ''; } if (this.options.style) { cssReset.position = ''; cssReset.top = ''; } $(this.element) .css(cssReset) .removeClass(this.options.fixClass) ; }, /** * Attach the watcher */ attach: function () { if (this.attached) { throw new Error('Already attached'); } var that = this; this.updateEventHandler = function () { that.pulse(); }; $(window) .scroll(this.updateEventHandler) .resize(this.updateEventHandler) ; this.attached = true; this.pulse(); }, /** * Detach the watcher */ detach: function () { if (!this.attached) { throw new Error('Not attached'); } $(window) .unbind('scroll', this.updateEventHandler) .unbind('resize', this.updateEventHandler) ; this.attached = false; }, /** * Pulse the watcher */ pulse: function () { var currentScroll = $(window).scrollTop(); if (this.fixed) { if (currentScroll <= this.getElementY(this.substitute) + this.options.unfixOffset) { this.unfix(); this.fixed = false; } else { this.updateFixed(); } } else { if (currentScroll >= this.getElementY(this.element) + this.options.fixOffset) { this.fix(); this.fixed = true; this.updateFixed(); } } } }; // jQuery methods /** * Attach a watcher to the matched element * * @param {Object} options watcher option map * @returns {ScrollFix.Watcher|Boolean} false if no element was matched */ $.fn.scrollFix = function (options) { var element = this[0]; if (element) { var watcher = new ScrollFix.Watcher(element, options); watcher.attach(); return watcher; } return false; }; })(Shira.ScrollFix || (Shira.ScrollFix = {})); })(Shira || (Shira = {}), jQuery); }); }( jQuery ) );